aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/invalid-template-declaration.cpp
blob: fda147520cca824f8a22be25aae87473d3b6ced5 (plain)
1
2
3
4
5
6
// RUN: %clang_cc1 %s -verify -fsyntax-only
// PR99933

struct S {
  template <typename> int i; // expected-error {{non-static data member 'i' cannot be declared as a template}}
};