3 // { dg-options "-O2 -fdump-ipa-pure-const" }
4 // { dg-final { scan-ipa-dump-not "Function found to be nothrow: void foo" "pure-const" } }
5 // { dg-final { scan-ipa-dump-not "Function found to be nothrow: void bar" "pure-const" } }
7 __attribute__((noinline, noclone)) static void bar (int);
10 struct S { S () { v++; } ~S () { v++; } };
12 __attribute__((noinline, noclone)) static void
20 __attribute__((noinline, noclone)) static void
30 __attribute__((noinline, noclone)) void
47 asm volatile ("" : : : "memory");