Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaCXX / default-argument-temporaries.cpp
blobc0880d507e43c96add3c33f0cf3722fdede4a70b
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
3 struct B { B(void* = 0); };
5 struct A {
6 A(B b = B()) { }
7 };
9 void f() {
10 (void)B();
11 (void)A();