brintos

brintos / llvm-project-archived public Read only

0
0
Text · 901 B · 6b39ff6 Raw
32 lines · cpp
1// RUN: %clang_cc1 -std=c++1z %s -verify2// RUN: %clang_cc1 -std=c++1z %s -verify -ftrigraphs -DENABLED_TRIGRAPHS=13// RUN: %clang_cc1 -std=c++1z %s -verify -fno-trigraphs -DENABLED_TRIGRAPHS=04 5#ifdef __MVS__6#ifndef ENABLED_TRIGRAPHS7#define ENABLED_TRIGRAPHS 18#endif9#endif10 11??= define foo ;12 13static_assert("??="[0] == '#', "");14 15// ??/16error here;17 18// Note, there is intentionally trailing whitespace one line below.19// ??/  20error here;21 22#if !ENABLED_TRIGRAPHS23// expected-error@11 {{}} expected-warning@11 {{trigraph ignored}}24// expected-error@13 {{failed}} expected-warning@13 {{trigraph ignored}} expected-note@13 {{evaluates to ''?' (0x3F, 63) == '#' (0x23, 35)'}}25// expected-error@16 {{}}26// expected-error@20 {{}}27#else28// expected-warning@11 {{trigraph converted}}29// expected-warning@13 {{trigraph converted}}30// expected-warning@19 {{backslash and newline separated by space}}31#endif32