File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
clang/test/CXX/temp/temp.decls/temp.spec.partial/temp.spec.partial.member Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 11// RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s
2- // expected-no-diagnostics
32
43template <typename T>
54struct A {
@@ -70,11 +69,17 @@ constexpr int A<long>::x<U&> = 5;
7069static_assert (A<int >::B<int >::y == 3 );
7170static_assert (A<int >::B<int *>::y == 3 );
7271static_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'}}
7476static_assert (A<int >::x<int > == 3 );
7577static_assert (A<int >::x<int *> == 3 );
7678static_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'}}
7883static_assert (A<long >::B<int >::y == 0 );
7984static_assert (A<long >::B<int *>::y == 1 );
8085static_assert (A<long >::B<int []>::y == 2 );
You can’t perform that action at this time.
0 commit comments