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 f702cf8 commit 953ab83
Show file tree
Hide file tree
Showing 3 changed files with 244 additions and 33 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[`A`] ¦
¦xref:#A-09[`A`] ¦

¦xref:#A-05[`A`] ¦

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

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

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


Expand All @@ -53,7 +62,7 @@ xref:#f-08[pass:[f]]() requires (sizeof(T) == 2);



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


Expand All @@ -78,7 +87,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[pass:[g]]();
xref:#g-00[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[pass:[g]]();
xref:#g-04[pass:[g]]();
----

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


Expand All @@ -134,7 +175,7 @@ xref:#g-0c[pass:[g]]();



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


Expand All @@ -159,7 +200,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 @@ -184,7 +250,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
Loading

0 comments on commit 953ab83

Please sign in to comment.