From 5b6032ab3c229362466173ad4e6ef3cc52dad275 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 12 Aug 2006 19:15:40 +0000 Subject: [PATCH] new offsetof testcase llvm-svn: 38892 --- clang/test/Parser/expressions.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clang/test/Parser/expressions.c b/clang/test/Parser/expressions.c index 13e34099c894..77201a80f971 100644 --- a/clang/test/Parser/expressions.c +++ b/clang/test/Parser/expressions.c @@ -23,3 +23,8 @@ int test3(int a, int b, int c) { int test4() { test4(); } + +int test_offsetof() { + // FIXME: change into something that is semantically correct. + __builtin_offsetof(int, a.b.c[4][5]); +}