2 /* { dg-options "-O2" } */
6 std::string __attribute__ ((noinline)) comp_test_write() {
9 for (int i = 0; i < 2; ++i) {
10 char b = 1 >> (i * 8);
17 std::string __attribute__ ((noinline)) comp_test_write_good() {
21 for (int i = 0; i < 2; ++i) {
30 std::string good = comp_test_write_good();
31 std::string bad = comp_test_write();