Skip to content

Commit f548d39

Browse files
authored
[Clang][Test] Update test after #115159 (#115172)
After #111852 was reverted in #115159, two tests now fail because they partially depend on its changes. This patch temporarily fixes the failing cases by updating the expected output to match the actual output. Once #111852 is relanded, this can be reverted.
1 parent c10d4b4 commit f548d39

File tree

1 file changed

+8
-3
lines changed
  • clang/test/CXX/temp/temp.decls/temp.spec.partial/temp.spec.partial.member

1 file changed

+8
-3
lines changed

clang/test/CXX/temp/temp.decls/temp.spec.partial/temp.spec.partial.member/p2.cpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s
2-
// expected-no-diagnostics
32

43
template<typename T>
54
struct A {
@@ -70,11 +69,17 @@ constexpr int A<long>::x<U&> = 5;
7069
static_assert(A<int>::B<int>::y == 3);
7170
static_assert(A<int>::B<int*>::y == 3);
7271
static_assert(A<int>::B<int[]>::y == 3);
73-
static_assert(A<int>::B<int&>::y == 4);
72+
73+
// FIXME: This should pass!
74+
static_assert(A<int>::B<int&>::y == 4); // expected-error {{static assertion failed due to requirement 'A<int>::B<int &>::y == 4'}}
75+
// expected-note@-1 {{expression evaluates to '3 == 4'}}
7476
static_assert(A<int>::x<int> == 3);
7577
static_assert(A<int>::x<int*> == 3);
7678
static_assert(A<int>::x<int[]> == 3);
77-
static_assert(A<int>::x<int&> == 4);
79+
80+
// FIXME: This should pass!
81+
static_assert(A<int>::x<int&> == 4); // expected-error {{static assertion failed due to requirement 'A<int>::x<int &> == 4'}}
82+
// expected-note@-1 {{expression evaluates to '3 == 4'}}
7883
static_assert(A<long>::B<int>::y == 0);
7984
static_assert(A<long>::B<int*>::y == 1);
8085
static_assert(A<long>::B<int[]>::y == 2);

0 commit comments

Comments
 (0)