xref: /minix3/external/bsd/llvm/dist/clang/test/Sema/pragma-weak.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -fsyntax-only -verify %s
2 
3 void __both3(void);
4 #pragma weak both3 = __both3 // expected-note {{previous definition}}
5 void both3(void) __attribute((alias("__both3"))); // expected-error {{redefinition of 'both3'}}
__both3(void)6 void __both3(void) {}
7 
8 void __a3(void) __attribute((noinline));
9 #pragma weak a3 = __a3 // expected-note {{previous definition}}
10 void a3(void) __attribute((alias("__a3"))); // expected-error {{redefinition of 'a3'}}
__a3(void)11 void __a3(void) {}
12