10 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify -Wconsumed -fcxx-exceptions -std=c++11 %s2// expected-no-diagnostics3 4struct foo {5 ~foo();6};7struct bar : foo {};8struct baz : bar {};9baz foobar(baz a) { return a; }10 1// RUN: %clang_cc1 -fsyntax-only -verify -Wconsumed -fcxx-exceptions -std=c++11 %s2// expected-no-diagnostics3 4struct foo {5 ~foo();6};7struct bar : foo {};8struct baz : bar {};9baz foobar(baz a) { return a; }10