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