• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -fsyntax-only -trigraphs -Wtrigraphs -verify %s
2 
3 ??=pragma // expected-warning {{trigraph converted to '#' character}}
4 
5 int a = '??/0'; // expected-warning {{trigraph converted to '\' character}}
6 
7 int b = 1 ??' 0; // expected-warning {{trigraph converted to '^' character}}
8 
9 int c ??(1]; // expected-warning {{trigraph converted to '[' character}}
10 
11 int d [1??); // expected-warning {{trigraph converted to ']' character}}
12 
13 int e = 1 ??! 0; // expected-warning {{trigraph converted to '|' character}}
14 
f()15 void f() ??<} // expected-warning {{trigraph converted to '{' character}}
16 
17 void g() {??> // expected-warning {{trigraph converted to '}' character}}
18 
19 int h = ??- 0; // expected-warning {{trigraph converted to '~' character}}
20