re PR tree-optimization/33291 (a+=2; a+=2 not simplified to a+=4; with -O3 ...
[gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr27781.c
1 /* { dg-do compile } */
2 /* { dg-require-weak "" } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
4
5 void __attribute__((weak)) func(void)
6 {
7 /* no code */
8 }
9
10 int main()
11 {
12 func();
13 return 0;
14 }
15
16 /* { dg-final { scan-tree-dump "func \\(\\);" "optimized" } } */
17 /* { dg-final { cleanup-tree-dump "optimized" } } */