summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/pragma-weak.c
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2015-12-03 11:37:28 +0000
committerAlexander Kornienko <alexfh@google.com>2015-12-03 11:37:28 +0000
commit061900fea81c9439918467d16fcb0bfb0bcb5dc8 (patch)
tree9ae5e196a47c00d7de6c56b3f284c1a6567d0856 /clang/test/Sema/pragma-weak.c
parentab43f42d9ced5b604ae9241fb02f12dc30f65556 (diff)
downloadbcm5719-llvm-061900fea81c9439918467d16fcb0bfb0bcb5dc8.tar.gz
bcm5719-llvm-061900fea81c9439918467d16fcb0bfb0bcb5dc8.zip
Revert "Fix for merging decls in pragma weak Calling CheckFunctionDeclaration so that 2 decls for the 'weak' are merged. Differential Revision: http://reviews.llvm.org/D13048"
This reverts commit r254143 which introduces a crash on the following input: f(char *); g(char *); #pragma weak f = g int g(char *p) {} llvm-svn: 254605
Diffstat (limited to 'clang/test/Sema/pragma-weak.c')
-rw-r--r--clang/test/Sema/pragma-weak.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/test/Sema/pragma-weak.c b/clang/test/Sema/pragma-weak.c
index 031e78f15ff..c14125eac9f 100644
--- a/clang/test/Sema/pragma-weak.c
+++ b/clang/test/Sema/pragma-weak.c
@@ -9,9 +9,3 @@ void __a3(void) __attribute((noinline));
#pragma weak a3 = __a3 // expected-note {{previous definition}}
void a3(void) __attribute((alias("__a3"))); // expected-error {{redefinition of 'a3'}}
void __a3(void) {}
-
-extern void weak2foo(int); // expected-note {{previous declaration is here}} expected-note {{'weak2foo' declared here}}
-void local2foo(double d1, double d2) { }
-#pragma weak weak2foo=local2foo // expected-error {{conflicting types for 'weak2foo'}}
-extern void extern2main() { return weak2foo(); } // expected-error {{too few arguments to function call, expected 1, have 0}}
-
OpenPOWER on IntegriCloud