brintos

brintos / llvm-project-archived public Read only

0
0
Text · 400 B · a72592a Raw
15 lines · c
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3typedef _Atomic char atomic_char;4 5atomic_char counter;6 7char load_plus_one(void) {8  return ({counter;}) + 1; // no crash9}10 11char type_of_stmt_expr(void) {12  typeof(({counter;})) y = ""; // expected-error-re {{incompatible pointer to integer conversion initializing 'typeof (({{{.*}}}))' (aka 'char') with an expression of type 'char[1]'}}13  return y;14}15