]> git.proxmox.com Git - rustc.git/blame - src/llvm/tools/clang/test/CXX/lex/lex.trigraph/p1.cpp
Imported Upstream version 0.6
[rustc.git] / src / llvm / tools / clang / test / CXX / lex / lex.trigraph / p1.cpp
CommitLineData
223e47cc
LB
1// RUN: %clang_cc1 -fsyntax-only -trigraphs -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}}