Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tm / pr52141.c
blob0dabf76ce6dac69107021903f8277a6e301be631
1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -O0 -w" } */
4 __attribute__((always_inline))
5 static void asmfunc(void)
7 __asm__ (""); /* { dg-error "asm not allowed in .transaction_safe" } */
10 __attribute__((transaction_safe))
11 static void f(void)
13 asmfunc();
16 int main()
18 __transaction_atomic {
19 f();
21 return 0;
24 /* { dg-message "inlined from \'f\'" "" { target *-*-* } 0 } */