1 // RUN: %clang_cc1 %s -fsyntax-only -verify -std=c99 -Wno-sizeof-array-decay
2 // expected-no-diagnostics
5 struct s { char c[17]; };
6 extern struct s foo(void);
10 int A[sizeof((foo().c)) == 17 ? 1 : -1];
11 int B[sizeof((a.c)) == 17 ? 1 : -1];
14 // comma does array/function promotion in c99.
15 int X[sizeof(0, (foo().c)) == sizeof(char*) ? 1 : -1];
16 int Y[sizeof(0, (a,b).c) == sizeof(char*) ? 1 : -1];
17 int Z[sizeof(0, (a=b).c) == sizeof(char*) ? 1 : -1];