Richard Smith | 4676203 | 2014-06-20 19:23:57 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -std=c++1z %s -verify |
Richard Smith | 4c132e5 | 2017-04-18 21:45:04 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -std=c++1z %s -ftrigraphs -fsyntax-only 2>&1 | FileCheck --check-prefix=TRIGRAPHS %s |
Richard Smith | 4676203 | 2014-06-20 19:23:57 +0000 | [diff] [blame] | 3 | |
| 4 | ??= define foo ; // expected-error {{}} expected-warning {{trigraph ignored}} |
| 5 | |
| 6 | static_assert("??="[0] == '#', ""); // expected-error {{failed}} expected-warning {{trigraph ignored}} |
| 7 | |
| 8 | // ??/ |
| 9 | error here; // expected-error {{}} |
Richard Smith | 4c132e5 | 2017-04-18 21:45:04 +0000 | [diff] [blame] | 10 | |
| 11 | // Note, there is intentionally trailing whitespace two lines below. |
| 12 | // TRIGRAPHS: :[[@LINE+1]]:{{.*}} backslash and newline separated by space |
| 13 | // ??/ |
| 14 | error here; // expected-error {{}} |