Debian Codegraph @

clang/test/Sema/gh106576.c

raw
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2
3 typedef _Atomic char atomic_char;
4
5 atomic_char counter;
6
7 char load_plus_one(void) {
8 return ({counter;}) + 1; // no crash
9 }
10
11 char 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 }