diff options
Diffstat (limited to 'test/Parser/cuda-kernel-call-c++11.cu')
| -rw-r--r-- | test/Parser/cuda-kernel-call-c++11.cu | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/Parser/cuda-kernel-call-c++11.cu b/test/Parser/cuda-kernel-call-c++11.cu index 8f833f79af508..1870b201ad91b 100644 --- a/test/Parser/cuda-kernel-call-c++11.cu +++ b/test/Parser/cuda-kernel-call-c++11.cu @@ -1,6 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s -template<typename> struct S {}; +template<typename T=int> struct S {}; template<typename> void f(); @@ -11,10 +11,14 @@ void foo(void) { // expected-no-diagnostics S<S<S<int>>> s3; + S<S<S<>>> s30; S<S<S<S<int>>>> s4; + S<S<S<S<>>>> s40; S<S<S<S<S<int>>>>> s5; + S<S<S<S<S<>>>>> s50; (void)(&f<S<S<int>>>==0); + (void)(&f<S<S<>>>==0); } |
