diff options
author | Alexander Kornienko <alexfh@google.com> | 2015-12-03 11:37:28 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2015-12-03 11:37:28 +0000 |
commit | 061900fea81c9439918467d16fcb0bfb0bcb5dc8 (patch) | |
tree | 9ae5e196a47c00d7de6c56b3f284c1a6567d0856 /clang/test/CodeGen/pragma-weak.c | |
parent | ab43f42d9ced5b604ae9241fb02f12dc30f65556 (diff) | |
download | bcm5719-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/CodeGen/pragma-weak.c')
-rw-r--r-- | clang/test/CodeGen/pragma-weak.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/clang/test/CodeGen/pragma-weak.c b/clang/test/CodeGen/pragma-weak.c index e63277fc230..36abca5de32 100644 --- a/clang/test/CodeGen/pragma-weak.c +++ b/clang/test/CodeGen/pragma-weak.c @@ -17,7 +17,6 @@ // CHECK-DAG: @mix2 = weak alias void (), void ()* @__mix2 // CHECK-DAG: @a1 = weak alias void (), void ()* @__a1 // CHECK-DAG: @xxx = weak alias void (), void ()* @__xxx -// CHECK-DAG: @weakfoo = weak alias void {{.*}} @localfoo @@ -174,14 +173,6 @@ label: // CHECK: declare extern_weak i32 @PR16705b() // CHECK: declare extern_weak i32 @PR16705c() -// In this test case, we have a declaration of weakfoo before #pragma weak. -// Test that 2 decls for the weakfoo are merged. -extern void weakfoo(); -void localfoo() { } -#pragma weak weakfoo=localfoo -extern void externmain() { return weakfoo(); } -// CHECK-LABEL: define void @externmain() -// CHECK: call{{.*}}@weakfoo ///////////// TODO: stuff that still doesn't work |