diff options
Diffstat (limited to 'test/Sema/attr-self-alias.c')
-rw-r--r-- | test/Sema/attr-self-alias.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/attr-self-alias.c b/test/Sema/attr-self-alias.c new file mode 100644 index 0000000..7c50458 --- /dev/null +++ b/test/Sema/attr-self-alias.c @@ -0,0 +1,4 @@ +// RUN: %clang_cc1 -triple x86_64-pc-linux -fsyntax-only -verify -emit-llvm-only %s + +int self_alias(void) __attribute__((weak, alias("self_alias"))); // expected-error {{alias definition is part of a cycle}} + |