repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
default-argument-temporaries.cpp
blob
c0880d507e43c96add3c33f0cf3722fdede4a70b
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
// expected-no-diagnostics
3
struct
B
{
B
(
void
* =
0
); };
4
5
struct
A
{
6
A
(
B b
=
B
()) { }
7
};
8
9
void
f
() {
10
(
void
)
B
();
11
(
void
)
A
();
12
}