Skip to content

Commit 531e239

Browse files
authored
Merge pull request #348 from kyleheadley/addclang
clean up tests without calls to clang
2 parents 9f36276 + ea794d6 commit 531e239

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+107
-73
lines changed

clang/test/3C/allarrays.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 --check-prefixes="CHECK" %s
1+
// RUN: 3c -alltypes %s | FileCheck -match-full-lines --check-prefixes="CHECK" %s
2+
// RUN: 3c -alltypes %s | %clang -c -f3c-tool -fcheckedc-extension -x c -o %t1.unused -
23

34
int* foo();
45
//CHECK: _Array_ptr<int> foo(_Array_ptr<int> r);

clang/test/3C/arrboundsadvanced.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: 3c -alltypes %s -- | FileCheck -match-full-lines %s
2-
1+
// RUN: 3c -alltypes %s | FileCheck -match-full-lines %s
2+
// RUN: 3c -alltypes %s | %clang -c -f3c-tool -fcheckedc-extension -x c -o %t1.unused -
33

44
/*
55
Advanced array-bounds inference (based on control-dependencies).
@@ -17,12 +17,12 @@ struct foo1 {
1717
unsigned ml;
1818
};
1919
//CHECK: _Array_ptr<int> x : count(ml);
20+
unsigned FooLenD;
21+
unsigned FooLen;
2022
struct foo **FL;
2123
int *intarr;
2224
//CHECK: _Array_ptr<_Ptr<struct foo>> FL : count(FooLen) = ((void *)0);
2325
//CHECK: _Array_ptr<int> intarr = ((void *)0);
24-
unsigned FooLenD;
25-
unsigned FooLen;
2626
void intcopy(int *arr, int *ptr, int len) {
2727
int i;
2828
for (i=0; i<len; i++) {

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 %t1.unused -
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 %t1.unused -
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 %t1.unused -
23

34

45
/*

clang/test/3C/arrboundsheuristics.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
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 -alltypes %s | %clang -c -f3c-tool -fcheckedc-extension -x c -o %t1.unused -
7+
// RUN: 3c %s | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
8+
// RUN: 3c %s | %clang -c -fcheckedc-extension -x c -o %t2.unused -
79

810
int *glob;
911
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 %t1.unused -
23

34

45
/*

clang/test/3C/arrtestsBUG.c renamed to clang/test/3C/arrtests_xfail.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
// XFAIL: *
21
// RUN: 3c -alltypes %s -- | FileCheck -match-full-lines %s
2+
// RUN: 3c -alltypes %s | %clang -c -f3c-tool -fcheckedc-extension -x c -o %t1.unused -
3+
34
// XFAIL: *
45

56
/*

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 %t1.unused -
67
//
78

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

clang/test/3C/basic_inter_field_ntarr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
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
6+
// RUN: 3c -alltypes %s | %clang -c -f3c-tool -fcheckedc-extension -x c -o %t1.unused -
67
//
78

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

0 commit comments

Comments
 (0)