summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/member-initializers.cpp
blob: 62077fabc72119099181d54ba2755d67204059e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: clang-cc -fsyntax-only -verify %s

template<typename T> struct A {
  A() : j(10), i(10) { }
  
  int i;
  int j;
};

template<typename T> struct B : A<T> {
  B() : A<T>() { }
};

OpenPOWER on IntegriCloud