Skip to content

Commit 4e5fa7f

Browse files
committed
test: add case for another known limitation
1 parent c147335 commit 4e5fa7f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

regression-tests/pure2-type-and-namespace-aliases.cpp2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ myclass3: @struct type = {
4141
// v4 :== v2; // Not (yet) supported.
4242
// v5: myclass4 == :myclass4 = ();; // Not yet supported.
4343
// v6: myclass5 == :myclass5 = ();; // Not yet supported.
44+
// v7 :== myclass3(); // Not (yet) supported.
4445

4546
// There's also a false positive:
4647
// <https://github.com/hsutter/cppfront/issues/666#issuecomment-1722329609>.

regression-tests/test-results/pure2-type-and-namespace-aliases.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class myclass;
2020
class myclass3;
2121

2222

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

2626
template<typename T> class myclass6;
@@ -68,6 +68,7 @@ class myclass3 {
6868
// v4 :== v2; // Not (yet) supported.
6969
// v5: myclass4 == :myclass4 = ();; // Not yet supported.
7070
// v6: myclass5 == :myclass5 = ();; // Not yet supported.
71+
// v7 :== myclass3(); // Not (yet) supported.
7172

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

0 commit comments

Comments
 (0)