You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
380 B
17 lines
380 B
// RUN: env CINDEXTEST_SKIP_FUNCTION_BODIES=1 c-index-test -test-load-source all %s 2>&1 \
|
|
// RUN: | FileCheck --implicit-check-not "error:" %s
|
|
|
|
|
|
template <class T>
|
|
struct Foo {
|
|
template <class = int>
|
|
Foo(int &a) : a(a) {
|
|
}
|
|
|
|
int &a;
|
|
};
|
|
|
|
|
|
int bar = Foo<int>(bar).a + Foo<int>(bar).a;
|
|
// CHECK-NOT: error: constructor for 'Foo<int>' must explicitly initialize the reference
|