Home | History | Annotate | Download | only in Parser
      1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
      2 
      3 template<typename> struct S {};
      4 template<typename> void f();
      5 
      6 
      7 void foo(void) {
      8   // In C++11 mode, all of these are expected to parse correctly, and the CUDA
      9   // language should not interfere with that.
     10 
     11   // expected-no-diagnostics
     12 
     13   S<S<S<int>>> s3;
     14 
     15   S<S<S<S<int>>>> s4;
     16 
     17   S<S<S<S<S<int>>>>> s5;
     18 
     19   (void)(&f<S<S<int>>>==0);
     20 }
     21