summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/attr-alias-elf.c
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-05-16 19:35:48 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-05-16 19:35:48 +0000
commitb2633b9793174e3f9dc1e2d8a6eceb76b1726399 (patch)
treea238273f724973c80410de505bcd2dd0633f0da5 /clang/test/Sema/attr-alias-elf.c
parent6b238633b77f8f18d4c3979a98ba2c77ce652cb1 (diff)
downloadbcm5719-llvm-b2633b9793174e3f9dc1e2d8a6eceb76b1726399.tar.gz
bcm5719-llvm-b2633b9793174e3f9dc1e2d8a6eceb76b1726399.zip
Update for llvm api change.
Now that llvm cannot represent alias cycles, we have to diagnose erros just before trying to close the cycle. This degrades the errors a bit. The real solution is what it was before: if we want to provide good errors for these cases, we have to be able to find a clang level decl given a mangled name and produce the error from Sema. llvm-svn: 209008
Diffstat (limited to 'clang/test/Sema/attr-alias-elf.c')
-rw-r--r--clang/test/Sema/attr-alias-elf.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/test/Sema/attr-alias-elf.c b/clang/test/Sema/attr-alias-elf.c
index 04d13924ac1..82ab0767826 100644
--- a/clang/test/Sema/attr-alias-elf.c
+++ b/clang/test/Sema/attr-alias-elf.c
@@ -35,13 +35,6 @@ void h9() __attribute__((alias("f9")));
void f9() __attribute__((alias("g9")));
void g9() {}
-void f10() __attribute__((alias("g10"))); // expected-error {{alias definition is part of a cycle}}
-void g10() __attribute__((alias("f10"))); // expected-error {{alias definition is part of a cycle}}
-
-// FIXME: This could be a bit better, h10 is not part of the cycle, it points
-// to it.
-void h10() __attribute__((alias("g10"))); // expected-error {{alias definition is part of a cycle}}
-
extern int a1 __attribute__((alias("b1")));
int b1 = 42;
OpenPOWER on IntegriCloud