brintos

brintos / llvm-project-archived public Read only

0
0
Text · 746 B · a80b00e Raw
20 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -ftrigraphs -Wtrigraphs -verify %s2 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