test.cpp 292 B

12345678
  1. // RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++1z -emit-pch -o %t.1.ast %S/Inputs/inheritance-base.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. class B : public A {
  5. B(int _a) : A(_a) {
  6. }
  7. };