diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2012-10-19 20:36:44 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2012-10-19 20:36:44 +0000 |
commit | 92125c474a4d268265eb2ea5f3733cdfa1c14a2e (patch) | |
tree | 3ca9f20320af970a4644bfa304ea5c67e65973d0 /clang/test/SemaCXX/ast-print.cpp | |
parent | 46d8fc9d6b6b2f6e1f3a52a8667bf79d7a46452d (diff) | |
download | bcm5719-llvm-92125c474a4d268265eb2ea5f3733cdfa1c14a2e.tar.gz bcm5719-llvm-92125c474a4d268265eb2ea5f3733cdfa1c14a2e.zip |
Pretty-print a ParenListExpr in a variable initializer correctly. Patch by Grzegorz Jablonski.
llvm-svn: 166311
Diffstat (limited to 'clang/test/SemaCXX/ast-print.cpp')
-rw-r--r-- | clang/test/SemaCXX/ast-print.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/ast-print.cpp b/clang/test/SemaCXX/ast-print.cpp index 5e89c8b5488..e0c154a0ecb 100644 --- a/clang/test/SemaCXX/ast-print.cpp +++ b/clang/test/SemaCXX/ast-print.cpp @@ -52,3 +52,11 @@ void test6() { unsigned int y = 0; test6fn((int&)y); } + +// CHECK: S s( 1, 2 ); + +template <class S> void test7() +{ + S s( 1,2 ); +} + |