summaryrefslogtreecommitdiff
path: root/clang/test/Sema/PR2728.c
blob: e9f1deaf7cd61987190d4647cabae9dfc29155a9 (about) (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1 -verify -fsyntax-only -std=c90 %s
// RUN: %clang_cc1 -verify -fsyntax-only -std=c99 %s

struct s
{
  int a;
};

int a[__builtin_offsetof(struct s, a) == 0];