1 // RUN: %clang_cc1 -verify %s
4 void f(void) __asm__("fish");
10 void g(void) __asm__("gold"); // expected-error{{cannot apply asm label to function after its first use}}
12 void h(void) __asm__("hose"); // expected-note{{previous declaration is here}}
13 void h(void) __asm__("hair"); // expected-error{{conflicting asm label}}
16 int x
__asm__("xenon");
19 int test(void) { return y
; }
21 int y
__asm__("yacht"); // expected-error{{cannot apply asm label to variable after its first use}}
23 int z
__asm__("zebra"); // expected-note{{previous declaration is here}}
24 int z
__asm__("zooms"); // expected-error{{conflicting asm label}}
27 // No diagnostics on the following.
28 void __real_readlink(void) __asm("readlink");
29 void readlink(void) __asm("__protected_readlink");
30 void readlink(void) { __real_readlink(); }