LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / ipa-icf-38.c
blob788038a1c68c37c5e43234b40d0f3a5e3f70d5f9
1 /* { dg-do link } */
2 /* { dg-options "-O2 -fdump-ipa-icf -flto -fdump-tree-optimized" } */
3 /* { dg-require-effective-target lto } */
4 /* { dg-additional-sources "ipa-icf-38a.c" }*/
6 /* Based on ipa-icf-3.c. */
8 typedef int v4si __attribute__ ((vector_size (16)));
10 __attribute__ ((noinline))
11 int foo(void)
13 v4si a = {1,2,3,4};
14 v4si b = {3,2,1,4};
15 v4si c;
17 return 54;
20 extern int bar(void);
22 int main()
24 int volatile a = foo();
25 int volatile b = bar();
27 return 0;
30 /* { dg-final { scan-wpa-ipa-dump "Semantic equality hit:foo->bar" "icf" } } */
31 /* { dg-final { scan-wpa-ipa-dump "Equal symbols: 1" "icf" } } */
32 /* { dg-final { scan-ltrans-tree-dump "Function foo" "optimized" } } */
33 /* { dg-final { scan-ltrans-tree-dump-not "Function bar" "optimized" } } */