Daniel Dunbar | 8fbe78f | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Andy Gibbs | c6e68da | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Anders Carlsson | 35d6e3e | 2009-08-27 05:57:30 +0000 | [diff] [blame] | 3 | |
4 | template<typename T> struct A { | ||||
5 | A() : j(10), i(10) { } | ||||
6 | |||||
7 | int i; | ||||
8 | int j; | ||||
9 | }; | ||||
10 | |||||
11 | template<typename T> struct B : A<T> { | ||||
12 | B() : A<T>() { } | ||||
13 | }; | ||||
14 |