LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / ubsan / ipa-icf-1.c
blob1638ec45e37d247ee402e8c78d883cf6bbc9703d
1 /* { dg-do run } */
2 /* { dg-skip-if "" { *-*-* } { "*" } { "-O2" } } */
3 /* { dg-options "-fsanitize=undefined -fipa-icf" } */
5 __attribute__ ((noinline, noclone))
6 int f1 (int x, int y)
8 return x + y;
11 __attribute__ ((noinline, noclone))
12 int f2 (int x, int y)
14 return x - y;
17 int
18 main ()
20 if (f1 (5, 6) != 11 || f2 (5, 6) != -1)
21 __builtin_abort ();
22 return 0;