Skip to content

Commit dbb2c1d

Browse files
committed
remove unnecessary tests
1 parent 41d53cb commit dbb2c1d

File tree

1 file changed

+2
-30
lines changed

1 file changed

+2
-30
lines changed

clang/test/CodeGenCXX/default-arguments.cpp

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -14,41 +14,13 @@ void g() {
1414

1515
namespace GH113324 {
1616
struct S1 {
17-
friend void f1(S1, int = 42) {}
18-
};
19-
20-
template <bool, class> using __enable_if_t = int;
21-
template <int v> struct S2 {
22-
static const int value = v;
23-
};
24-
struct S3 {
25-
template <__enable_if_t<S2<true>::value, int> = 0> S3(const char *);
26-
};
27-
struct S4 {
28-
template <typename a, typename b> friend void f2(int, S4, a, b, S3 = "") {}
17+
friend void f(S1, int = 42) {}
2918
};
3019

3120
void test() {
3221
S1 s1;
33-
f1(s1);
34-
35-
S4 s4;
36-
f2(0, s4, [] {}, [] {});
37-
}
22+
f(s1);
3823
}
39-
40-
struct A1 {
41-
A1();
42-
~A1();
43-
};
44-
45-
struct A2 {
46-
A2();
47-
~A2();
48-
};
49-
50-
struct B {
51-
B(const A1& = A1(), const A2& = A2());
5224
};
5325

5426
// CHECK-LABEL: define{{.*}} void @_Z2f1v()

0 commit comments

Comments
 (0)