Clang Project

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