brintos

brintos / llvm-project-archived public Read only

0
0
Text · 491 B · 018c8f4 Raw
11 lines · c
1// RUN: %clang_cc1 -verify=good -std=c2y -finitial-counter-value=2147483648 %s2// RUN: %clang_cc1 -verify -std=c2y -finitial-counter-value=2147483648 -DEXPAND_IT %s3// good-no-diagnostics4 5// This sets the intial __COUNTER__ value to something that's too big. Setting6// the value too large is fine. Expanding to a too-large value is not.7#ifdef EXPAND_IT8  // This one should fail.9  signed long i = __COUNTER__; // expected-error {{'__COUNTER__' value cannot exceed 2'147'483'647}}10#endif11