1 // RUN: %clang_cc1 -fsyntax-only -ftrigraphs -Wtrigraphs -verify %s
3 ??=pragma
// expected-warning {{trigraph converted to '#' character}}
5 int a
= '??/0'; // expected-warning {{trigraph converted to '\' character}}
7 int b
= 1 ??' 0; // expected-warning {{trigraph converted to '^' character}}
9 int c ??(1]; // expected-warning {{trigraph converted to '[' character}}
11 int d [1??); // expected-warning {{trigraph converted to ']' character}}
13 int e = 1 ??! 0; // expected-warning {{trigraph converted to '|' character}}
15 void f() ??<} // expected-warning {{trigraph converted to '{' character}}
17 void g() {??> // expected-warning {{trigraph converted to '}' character}}
19 int h = ??- 0; // expected-warning {{trigraph converted to '~' character}}