xref: /minix3/external/bsd/llvm/dist/clang/test/Sema/attr-alias.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin  -fsyntax-only -verify %s
2 
g()3 void g() {}
4 
5 // It is important that the following string be in the error message. The gcc
6 // testsuite looks for it to decide if a target supports aliases.
7 
8 void f() __attribute__((alias("g"))); //expected-error {{only weak aliases are supported}}
9