diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-28 21:23:03 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-28 21:23:03 +0000 |
commit | 55e6d896ad333f07bb3b1ba487df214fc268a4ab (patch) | |
tree | 9ac2087dfbe8507c56dd39d17cad42836448829f /test/Index | |
parent | 1de93ee5610e8a97e753c881c574f8d994e71373 (diff) |
Notes
Diffstat (limited to 'test/Index')
-rw-r--r-- | test/Index/skipped-bodies-ctors.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Index/skipped-bodies-ctors.cpp b/test/Index/skipped-bodies-ctors.cpp new file mode 100644 index 0000000000000..8a559ee0c74b7 --- /dev/null +++ b/test/Index/skipped-bodies-ctors.cpp @@ -0,0 +1,16 @@ +// 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 |