diff options
Diffstat (limited to 'test/Parser/editor-placeholder-recovery.cpp')
-rw-r--r-- | test/Parser/editor-placeholder-recovery.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Parser/editor-placeholder-recovery.cpp b/test/Parser/editor-placeholder-recovery.cpp index 48c290ee9a14..d68e087d6fba 100644 --- a/test/Parser/editor-placeholder-recovery.cpp +++ b/test/Parser/editor-placeholder-recovery.cpp @@ -69,3 +69,7 @@ void Struct::method(<#Struct &x#>, noSupressionHere) { // expected-error {{unkno // expected-error@-2 {{editor placeholder in source file}} #endif } + +void handleTrigraph() { + <??=placeholder#> // expected-error {{expected expression}} expected-error {{expected expression}} expected-warning {{trigraph converted to '#' character}} +} |