LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-plusmult.c
blobcd28fa6751b3dddd5ed864144f005dcb9ebd1c68
1 /* { dg-do compile } */
2 /* { dg-options "-fdump-tree-original" } */
4 int test1 (int a)
6 return 2*a + 2*a;
9 int test2 (int a)
11 return (a + a)*2;
14 /* { dg-final { scan-tree-dump-times "a \\\* 4" 2 "original" } } */