1 /* PR tree-optimization/98508 - Sanitizer disable -Wall and -Wextra
3 { dg-require-effective-target no_fsanitize_address }
4 { dg-options "-O0 -Wall -fsanitize=address" } */
11 void warn_init_self_O0 ()
13 S s = S (s); // { dg-warning "\\\[-Wuninitialized" }
18 void warn_init_self_use_O0 ()
20 S s = S (s); // { dg-warning "\\\[-Wuninitialized" }
27 #pragma GCC optimize ("1")
29 void warn_init_self_O1 ()
31 S s = S (s); // { dg-warning "\\\[-Wuninitialized" }
36 void warn_init_self_use_O1 ()
38 S s = S (s); // { dg-warning "\\\[-Wuninitialized" }
45 #pragma GCC optimize ("2")
47 void warn_init_self_O2 ()
49 S s = S (s); // { dg-warning "\\\[-Wuninitialized" }
54 void warn_init_self_use_O2 ()
56 S s = S (s); // { dg-warning "\\\[-Wuninitialized" }