commit | 0f072032931fec955c6c022d38f692deff707744 | [log] [tgz] |
---|---|---|
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Fri Sep 05 11:26:19 2008 +0000 |
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Fri Sep 05 11:26:19 2008 +0000 |
tree | 8df2ceb9550b546ff824babd44734ccc99514390 | |
parent | 121e3c207415fb4c105d690de384d8f3d49b0f2d [diff] [blame] |
Support "typeof unary-expression" (GNU C++ extension). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55833 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Parser/cxx-typeof.cpp b/test/Parser/cxx-typeof.cpp new file mode 100644 index 0000000..7e09905 --- /dev/null +++ b/test/Parser/cxx-typeof.cpp
@@ -0,0 +1,7 @@ +// RUN: clang -fsyntax-only -verify %s + +static void test() { + int *pi; + int x; + typeof pi[x] y; +}