Skip to content

Commit ab598df

Browse files
committed
add clang call in tests, or reason not to
1 parent f2e3d1c commit ab598df

29 files changed

+78
-35
lines changed

clang/test/3C/allarrays.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
// RUN: 3c -alltypes %s -- | FileCheck -match-full-lines --check-prefixes="CHECK" %s
1+
// RUN: 3c -alltypes %s | FileCheck -match-full-lines --check-prefixes="CHECK" %s
2+
3+
// Currently not possible to run clang on the output,
4+
// since 3c cannot yet determine array bounds for q
25

36
int* foo();
47
//CHECK: _Array_ptr<int> foo(_Array_ptr<int> r);

clang/test/3C/arrboundsadvanced.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
// RUN: 3c -alltypes %s -- | FileCheck -match-full-lines %s
1+
// RUN: 3c -alltypes %s | FileCheck -match-full-lines %s
22

3+
// Currently not possible to run clang on the output,
4+
// since 3c cannot yet determine array bounds for intarr
35

46
/*
57
Advanced array-bounds inference (based on control-dependencies).

clang/test/3C/arrboundsbasic.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: 3c -alltypes %s -- | FileCheck -match-full-lines %s
1+
// RUN: 3c -alltypes %s | FileCheck -match-full-lines %s
2+
// RUN: 3c -alltypes %s | %clang -c -fcheckedc-extension -x c -o /dev/null -
23

34

45
/*

clang/test/3C/arrboundsbasicinfer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: 3c -alltypes %s -- | FileCheck -match-full-lines %s
1+
// RUN: 3c -alltypes %s | FileCheck -match-full-lines %s
2+
// RUN: 3c -alltypes %s | %clang -c -fcheckedc-extension -x c -o /dev/null -
23

34

45
/*

clang/test/3C/arrboundsbyte.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: 3c -alltypes %s -- | FileCheck -match-full-lines %s
1+
// RUN: 3c -alltypes %s | FileCheck -match-full-lines %s
2+
// RUN: 3c -alltypes %s | %clang -c -fcheckedc-extension -x c -o /dev/null -
23

34

45
/*

clang/test/3C/arrboundsheuristics.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
//
33
// Checks wrong array heuristics.
44
//
5-
//RUN: 3c -alltypes %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
6-
//RUN: 3c %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
5+
// RUN: 3c -alltypes %s | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
6+
// RUN: 3c %s | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
7+
// RUN: 3c %s | %clang -c -fcheckedc-extension -x c -o /dev/null -
78

89
int *glob;
910
int lenplusone;

clang/test/3C/arrboundsinfer2.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: 3c -alltypes %s -- | FileCheck -match-full-lines %s
1+
// RUN: 3c -alltypes %s | FileCheck -match-full-lines %s
2+
// RUN: 3c -alltypes %s | %clang -c -fcheckedc-extension -x c -o /dev/null -
23

34

45
/*

clang/test/3C/basic_inter.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
//
33
// Tests properties about constraint propagation between functions.
44
//
5-
// RUN: 3c %s -- | FileCheck -match-full-lines %s
5+
// RUN: 3c %s | FileCheck -match-full-lines %s
6+
// RUN: 3c %s | %clang -c -fcheckedc-extension -x c -o /dev/null -
67
//
78

89
int funcdecl(int *ptr, int *iptr, int *wild);

clang/test/3C/basic_inter_field_ntarr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// Tests rewriting of Nt_array_ptrs within structure fields
44

5-
// RUN: 3c -alltypes %s -- | FileCheck -match-full-lines %s
5+
// RUN: 3c -alltypes %s | FileCheck -match-full-lines %s
66
//
77

88
unsigned long strlen(const char *s : itype(_Nt_array_ptr<const char>)) ;

clang/test/3C/basic_inter_ntarr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
//
33
// Tests rewriting and propagation of Nt_array_ptr constraints across functions.
44
//
5-
// RUN: 3c -alltypes %s -- | FileCheck -match-full-lines %s
5+
// RUN: 3c -alltypes %s | FileCheck -match-full-lines %s
6+
// RUN: 3c -alltypes %s | %clang -c -fcheckedc-extension -x c -o /dev/null -
67
//
78
char *strstr(const char *s1 : itype(_Nt_array_ptr<const char>),
89
const char *s2 : itype(_Nt_array_ptr<const char>)) : itype(_Nt_array_ptr<char>);

0 commit comments

Comments
 (0)