]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ASTMerge/init-ctors/test.cpp
Vendor import of clang trunk r290819:
[FreeBSD/FreeBSD.git] / test / ASTMerge / init-ctors / test.cpp
1 // RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++1z -emit-pch -o %t.1.ast %S/Inputs/init-ctors-classes.cpp
2 // RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++1z -ast-merge %t.1.ast -fsyntax-only -verify %s
3 // expected-no-diagnostics
4
5 class B {
6   int method_1() {
7     A a(0);
8     return a.x;
9   }
10 };