aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/default-argument-temporaries.cpp
blob: 232351dcff3dbfdd95b869c6fe32502148722827 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
// RUN: clang-cc -fsyntax-only -verify %s
struct B { B(void* = 0); };

struct A {
  A(B b = B()) { }
};

void f() {
  (void)B();
  (void)A();
}