summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/annotate-tokens-cxx0x.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-01-19 20:34:17 +0000
committerDouglas Gregor <dgregor@apple.com>2011-01-19 20:34:17 +0000
commit557f05c2d20b4b5fa4b8c424c5444ffce81d426e (patch)
tree70af2ed40f3259cf2e3743952eef03ff585e1c9e /clang/test/Index/annotate-tokens-cxx0x.cpp
parent0231d8dac7051b6ca11813c30913f4119db225ef (diff)
downloadbcm5719-llvm-557f05c2d20b4b5fa4b8c424c5444ffce81d426e.tar.gz
bcm5719-llvm-557f05c2d20b4b5fa4b8c424c5444ffce81d426e.zip
Teach libclang about SizeOfPackExpr.
llvm-svn: 123846
Diffstat (limited to 'clang/test/Index/annotate-tokens-cxx0x.cpp')
-rw-r--r--clang/test/Index/annotate-tokens-cxx0x.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Index/annotate-tokens-cxx0x.cpp b/clang/test/Index/annotate-tokens-cxx0x.cpp
new file mode 100644
index 00000000000..5dea3514c2b
--- /dev/null
+++ b/clang/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
OpenPOWER on IntegriCloud