[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Index / skipped-bodies-ctors.cpp
blob8a559ee0c74b7a409108ac2e6e542baaf1a472c7
1 // RUN: env CINDEXTEST_SKIP_FUNCTION_BODIES=1 c-index-test -test-load-source all %s 2>&1 \
2 // RUN: | FileCheck --implicit-check-not "error:" %s
5 template <class T>
6 struct Foo {
7 template <class = int>
8 Foo(int &a) : a(a) {
11 int &a;
15 int bar = Foo<int>(bar).a + Foo<int>(bar).a;
16 // CHECK-NOT: error: constructor for 'Foo<int>' must explicitly initialize the reference