Move the c-torture/noncompile tests to either gcc.dg/cpp or a new
[official-gcc.git] / gcc / testsuite / gcc.dg / 20000614-1.c
blob62d9b2902671767fcb9250472340a1da3415debb
1 /* { dg-do run { target i?86-*-* } } */
2 /* { dg-options "-O2" } */
4 void bar(char *p)
8 static inline void foo (unsigned long base, unsigned char val)
10 val ^= (1<<2);
11 bar (val & (1<<5) ? "1" : "2");
12 bar (val & (1<<4) ? "1" : "2");
13 bar (val & (1<<3) ? "1" : "2");
14 bar (val & (1<<2) ? "1" : "2");
15 bar (val & (1<<1) ? "1" : "2");
16 bar (val & (1<<0) ? "1" : "2");
17 asm volatile ("": :"a" (val), "d" (base));
20 int main (void)
22 foo (23, 1);