diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-09-05 11:26:19 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-09-05 11:26:19 +0000 |
commit | 0f072032931fec955c6c022d38f692deff707744 (patch) | |
tree | 8df2ceb9550b546ff824babd44734ccc99514390 /test/Parser/cxx-typeof.cpp | |
parent | 121e3c207415fb4c105d690de384d8f3d49b0f2d (diff) |
Support "typeof unary-expression" (GNU C++ extension).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55833 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-typeof.cpp')
-rw-r--r-- | test/Parser/cxx-typeof.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Parser/cxx-typeof.cpp b/test/Parser/cxx-typeof.cpp new file mode 100644 index 0000000000..7e09905d8f --- /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; +} |