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