brintos

brintos / llvm-project-archived public Read only

0
0
Text · 366 B · a044ba0 Raw
12 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3template <class T>4struct X : public Foo<Bar { // expected-error {{unknown template name 'Foo'}} expected-error {{use of undeclared identifier 'Bar'}} expected-note {{to match this '<'}}5  X();6}; // expected-error {{expected '>'}} expected-error {{expected '{' after base class list}}7 8 9template <class T>10X<T>::X() {11}12