Skip to content

Commit

Permalink
[FOLD] update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sdkrystian committed Nov 14, 2024
1 parent e6c2ab1 commit 465dc00
Showing 1 changed file with 99 additions and 13 deletions.
112 changes: 99 additions & 13 deletions test-files/golden-tests/requires-clause.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
[cols=2,separator=¦]
|===
¦Name ¦Description
¦xref:A.adoc[`A`] ¦
¦xref:A-09.adoc[`A`] ¦

¦xref:A-05.adoc[`A`] ¦

|===
=== Functions
Expand All @@ -34,14 +36,21 @@
----
template<typename T>
void
xref:f-05.adoc[pass:[f]]() requires (sizeof(T) == 4);
xref:f-04.adoc[pass:[f]]() requires (sizeof(T) == 4);
----

[source,cpp,subs="verbatim,macros,-callouts"]
----
template<typename T>
void
xref:f-08.adoc[pass:[f]]() requires (sizeof(T) == 2);
xref:f-0b.adoc[pass:[f]]() requires (sizeof(T) == 2);
----

[source,cpp,subs="verbatim,macros,-callouts"]
----
template<typename U>
void
xref:f-02.adoc[pass:[f]]() requires (sizeof(U) == 2);
----


Expand All @@ -52,7 +61,7 @@ xref:f-08.adoc[pass:[f]]() requires (sizeof(T) == 2);



[#f-05]
[#f-04]

== f

Expand All @@ -77,7 +86,7 @@ f() requires (sizeof(T) == 4);



[#f-08]
[#f-0b]

== f

Expand All @@ -102,6 +111,31 @@ f() requires (sizeof(T) == 2);



[#f-02]

== f



=== Synopsis

Declared in `<requires-clause.cpp>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
template<typename U>
void
f() requires (sizeof(U) == 2);
----









[#g]

== g
Expand All @@ -115,14 +149,21 @@ f() requires (sizeof(T) == 2);
----
template<typename T> requires (sizeof(T) == 4)
void
xref:g-0a.adoc[pass:[g]]();
xref:g-00.adoc[pass:[g]]();
----

[source,cpp,subs="verbatim,macros,-callouts"]
----
template<typename T> requires (sizeof(U) == 2)
template<typename T> requires (sizeof(T) == 2)
void
xref:g-0c.adoc[pass:[g]]();
xref:g-04.adoc[pass:[g]]();
----

[source,cpp,subs="verbatim,macros,-callouts"]
----
template<typename U> requires (sizeof(U) == 2)
void
xref:g-03.adoc[pass:[g]]();
----


Expand All @@ -133,7 +174,7 @@ xref:g-0c.adoc[pass:[g]]();



[#g-0a]
[#g-00]

== g

Expand All @@ -158,7 +199,32 @@ g();



[#g-0c]
[#g-04]

== g



=== Synopsis

Declared in `<requires-clause.cpp>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
template<typename T> requires (sizeof(T) == 2)
void
g();
----









[#g-03]

== g

Expand All @@ -170,7 +236,7 @@ Declared in `<requires-clause.cpp>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
template<typename T> requires (sizeof(U) == 2)
template<typename U> requires (sizeof(U) == 2)
void
g();
----
Expand All @@ -183,7 +249,27 @@ g();



[#A]
[#A-09]

== A



=== Synopsis

Declared in `<requires-clause.cpp>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
template<typename T> requires (sizeof(T) == 2)
struct A;
----





[#A-05]

== A

Expand All @@ -195,7 +281,7 @@ Declared in `<requires-clause.cpp>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
template<typename T> requires (sizeof(U) == 2)
template<typename U> requires (sizeof(U) == 2)
struct A;
----

Expand Down

0 comments on commit 465dc00

Please sign in to comment.