Skip to content

Commit 6878646

Browse files
committed
Update tests
1 parent 0686487 commit 6878646

37 files changed

Lines changed: 1713 additions & 298 deletions

‎tests/unit/lambda_capture_copy_ctor.cpp‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// no-compile: refcount
2-
// panic: unsafe
1+
// panic
32
#include <assert.h>
43
#include <utility>
54

‎tests/unit/lambda_capture_implicit.cpp‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// panic
21
#include <assert.h>
32

43
int main() {

‎tests/unit/lambda_capture_ref.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// no-compile
1+
// no-compile: refcount
22
#include <assert.h>
33
#include <stddef.h>
44
#include <stdint.h>

‎tests/unit/lambda_capture_star_this.cpp‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// no-compile: refcount
2-
// panic: unsafe
1+
// no-compile: unsafe
32
#include <assert.h>
43

54
struct S {

‎tests/unit/lambda_capture_this.cpp‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// no-compile: refcount
21
#include <assert.h>
32

43
struct S {

‎tests/unit/lambda_capture_value.cpp‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// no-compile
21
#include <assert.h>
32

43
struct S {

‎tests/unit/lambda_immediate_init.cpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// no-compile
1+
// no-compile: refcount
2+
// translation-fail: unsafe
23
#include <assert.h>
34

45
int pick(int x = [] { return 237; }()) { return x; }

‎tests/unit/lambda_move_only_capture.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// no-compile
1+
// XFAIL: unsafe
22
#include <assert.h>
33
#include <utility>
44

‎tests/unit/lambda_mutable.cpp‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// panic
21
#include <assert.h>
32

43
int main() {

‎tests/unit/lambda_namespace_scope.cpp‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// no-compile
21
#include <assert.h>
32

43
int counter = 0;

0 commit comments

Comments
 (0)