diff options
Diffstat (limited to 'clang/test/Sema/offsetof.c')
| -rw-r--r-- | clang/test/Sema/offsetof.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Sema/offsetof.c b/clang/test/Sema/offsetof.c index cf88465e535..5026193943f 100644 --- a/clang/test/Sema/offsetof.c +++ b/clang/test/Sema/offsetof.c @@ -62,3 +62,6 @@ struct has_bitfields { }; int test3 = __builtin_offsetof(struct has_bitfields, j); // expected-error{{cannot compute offset of bit-field 'j'}} + +typedef struct Array { int array[1]; } Array; +int test4 = __builtin_offsetof(Array, array); |

