Skip to content

Commit

Permalink
test: add case for another known limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
JohelEGP committed Oct 4, 2023
1 parent c147335 commit 4e5fa7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions regression-tests/pure2-type-and-namespace-aliases.cpp2
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ myclass3: @struct type = {
// v4 :== v2; // Not (yet) supported.
// v5: myclass4 == :myclass4 = ();; // Not yet supported.
// v6: myclass5 == :myclass5 = ();; // Not yet supported.
// v7 :== myclass3(); // Not (yet) supported.

// There's also a false positive:
// <https://github.com/hsutter/cppfront/issues/666#issuecomment-1722329609>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class myclass;
class myclass3;


#line 49 "pure2-type-and-namespace-aliases.cpp2"
#line 50 "pure2-type-and-namespace-aliases.cpp2"
class myclass4;

template<typename T> class myclass6;
Expand Down Expand Up @@ -68,6 +68,7 @@ class myclass3 {
// v4 :== v2; // Not (yet) supported.
// v5: myclass4 == :myclass4 = ();; // Not yet supported.
// v6: myclass5 == :myclass5 = ();; // Not yet supported.
// v7 :== myclass3(); // Not (yet) supported.

// There's also a false positive:
// <https://github.com/hsutter/cppfront/issues/666#issuecomment-1722329609>.
Expand All @@ -78,7 +79,7 @@ class myclass4 {};
template<typename T> class myclass6 {
public: template<typename U>
CPP2_REQUIRES_ (true)
#line 52 "pure2-type-and-namespace-aliases.cpp2"
#line 53 "pure2-type-and-namespace-aliases.cpp2"
static constexpr auto v = 0;
};

Expand Down

0 comments on commit 4e5fa7f

Please sign in to comment.