diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-01-19 20:34:17 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-01-19 20:34:17 +0000 |
commit | 94d96291cd041adc5731a2294828a9c20e450b74 (patch) | |
tree | e7b8f2ead1bfd9eab43b287d33aaa8d14638025c /test/Index/annotate-tokens-cxx0x.cpp | |
parent | 6952f1e4256c5b43aee5e98cea4e9b663bd1d413 (diff) |
Teach libclang about SizeOfPackExpr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123846 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/annotate-tokens-cxx0x.cpp')
-rw-r--r-- | test/Index/annotate-tokens-cxx0x.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Index/annotate-tokens-cxx0x.cpp b/test/Index/annotate-tokens-cxx0x.cpp new file mode 100644 index 0000000000..5dea3514c2 --- /dev/null +++ b/test/Index/annotate-tokens-cxx0x.cpp @@ -0,0 +1,8 @@ +template<typename ...Args> +int f(Args ...args) { + return sizeof...(args) + sizeof...(Args); +} + +// RUN: c-index-test -test-annotate-tokens=%s:1:1:5:1 -std=c++0x %s | FileCheck %s +// CHECK: Identifier: "args" [3:20 - 3:24] UnexposedExpr=args:2:15 +// CHECK: Identifier: "Args" [3:38 - 3:42] TypeRef=Args:1:22 |