Parse "sizeof(arr)[0]" as a sizeof of an expr if arr
is an expression.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44065 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Parser/expressions.c b/test/Parser/expressions.c
index 3fb8c1c..3b47260 100644
--- a/test/Parser/expressions.c
+++ b/test/Parser/expressions.c
@@ -28,3 +28,12 @@
// FIXME: change into something that is semantically correct.
__builtin_offsetof(int, a.b.c[4][5]);
}
+
+void test_sizeof(){
+ int arr[10];
+ sizeof arr[0];
+ sizeof(arr[0]);
+ sizeof(arr)[0];
+}
+
+