2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -verify -fsyntax-only -std=c90 %s
|
|
|
|
// RUN: %clang_cc1 -verify -fsyntax-only -std=c99 %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2008-08-29 02:42:20 +08:00
|
|
|
|
|
|
|
struct s
|
|
|
|
{
|
|
|
|
int a;
|
|
|
|
};
|
|
|
|
|
|
|
|
int a[__builtin_offsetof(struct s, a) == 0];
|