xref: /minix3/external/bsd/llvm/dist/clang/test/CXX/lex/lex.trigraph/p1.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -ftrigraphs -Wtrigraphs -verify %s
2f4a2713aSLionel Sambuc 
3f4a2713aSLionel Sambuc ??=pragma // expected-warning {{trigraph converted to '#' character}}
4f4a2713aSLionel Sambuc 
5f4a2713aSLionel Sambuc int a = '??/0'; // expected-warning {{trigraph converted to '\' character}}
6f4a2713aSLionel Sambuc 
7f4a2713aSLionel Sambuc int b = 1 ??' 0; // expected-warning {{trigraph converted to '^' character}}
8f4a2713aSLionel Sambuc 
9f4a2713aSLionel Sambuc int c ??(1]; // expected-warning {{trigraph converted to '[' character}}
10f4a2713aSLionel Sambuc 
11f4a2713aSLionel Sambuc int d [1??); // expected-warning {{trigraph converted to ']' character}}
12f4a2713aSLionel Sambuc 
13f4a2713aSLionel Sambuc int e = 1 ??! 0; // expected-warning {{trigraph converted to '|' character}}
14f4a2713aSLionel Sambuc 
f()15f4a2713aSLionel Sambuc void f() ??<} // expected-warning {{trigraph converted to '{' character}}
16f4a2713aSLionel Sambuc 
17f4a2713aSLionel Sambuc void g() {??> // expected-warning {{trigraph converted to '}' character}}
18f4a2713aSLionel Sambuc 
19f4a2713aSLionel Sambuc int h = ??- 0; // expected-warning {{trigraph converted to '~' character}}
20