xref: /minix3/external/bsd/llvm/dist/clang/test/Sema/attr-alias.c (revision 0b98e8aad89f2bd4ba80b523d73cf29e9dd82ce1)
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin  -fsyntax-only -verify %s
2 
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