Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / pr52734.c
bloba6894954e714536cbb219594c506971043a3e5d4
1 /* { dg-do run } */
2 /* { dg-options "-O2" } */
4 int bbb = 0;
6 int __attribute__((noinline,noclone)) aaa(void)
8 ++bbb;
9 return 0;
12 int __attribute__((noinline,noclone)) ccc(void)
14 int ddd;
15 /* bbb == 0 */
16 if (aaa())
17 return bbb;
19 /* bbb == 1 */
20 ddd = bbb;
21 /* bbb == ddd == 1 */
22 if (aaa ())
23 return 0;
24 /* bbb == 2, ddd == 1 */
26 return ddd;
29 int main(void)
31 if (ccc() != 1)
32 __builtin_abort();
33 return 0;