Mercurial > hg > CbC > CbC_llvm
view clang/test/Index/skipped-bodies-ctors.cpp @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// 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