llvm-project/clang/test/Sema/PR2728.c

10 lines
169 B
C
Raw Normal View History

// RUN: clang -verify -fsyntax-only -std=c90 %s &&
// RUN: clang -verify -fsyntax-only -std=c99 %s
struct s
{
int a;
};
int a[__builtin_offsetof(struct s, a) == 0];