gcc/testsuite/g++.dg/cpp1z/pr115440.C
raw| 1 | // PR driver/115440 |
| 2 | // { dg-do compile { target c++17_only } } |
| 3 | // { dg-options "--c++17" } |
| 4 | |
| 5 | int i; |
| 6 | |
| 7 | // { dg-bogus "unrecognized command-line option '--c\\\+\\\+17'; did you mean '--stdc\\\+\\\+17'" "" { target *-*-* } 0 } |
| 8 | // { dg-error "unrecognized command-line option '--c\\\+\\\+17'" "" { target *-*-* } 0 } |