summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/debug-info-alias.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-05-01 18:25:19 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-05-01 18:25:19 +0000
commit1c286f6d8f77216cc78ea96e80623b189cc2bcd2 (patch)
tree9a8154b3cecf4d5f05748760628de36cdde284d0 /clang/test/CodeGenCXX/debug-info-alias.cpp
parent80bec83d8db7ea6c35f2c2cfdfd619ebd290e4e4 (diff)
downloadbcm5719-llvm-1c286f6d8f77216cc78ea96e80623b189cc2bcd2.tar.gz
bcm5719-llvm-1c286f6d8f77216cc78ea96e80623b189cc2bcd2.zip
PR19623: Support typedefs (and alias templates) of void.
llvm-svn: 207781
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-alias.cpp')
-rw-r--r--clang/test/CodeGenCXX/debug-info-alias.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-alias.cpp b/clang/test/CodeGenCXX/debug-info-alias.cpp
index d294a0b0733..fb18ac5da00 100644
--- a/clang/test/CodeGenCXX/debug-info-alias.cpp
+++ b/clang/test/CodeGenCXX/debug-info-alias.cpp
@@ -27,3 +27,11 @@ narf // CHECK: [[NARF]] = {{.*}} ; [ DW_TAG_typedef ] [narf] [line 142
= int;
narf n;
+template <typename T>
+using tv = void;
+// CHECK: null} ; [ DW_TAG_typedef ] [tv<int>] {{.*}} [from ]
+tv<int> *tvp;
+
+using v = void;
+// CHECK: null} ; [ DW_TAG_typedef ] [v] {{.*}} [from ]
+v *vp;
OpenPOWER on IntegriCloud