Skip to content

Commit 96772ff

Browse files
Update processor.py and managed tests
1 parent 7fffa98 commit 96772ff

Some content is hidden

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

44 files changed

+93
-137
lines changed

clang/test/3C/b10_allsafepointerstruct.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
22
// RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
33
// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -fcheckedc-extension -x c -o /dev/null -
4-
// RUN: 3c -base-dir=%S -output-postfix=checked -alltypes %s
5-
// RUN: 3c -base-dir=%S -alltypes %S/b10_allsafepointerstruct.checked.c -- | diff %S/b10_allsafepointerstruct.checked.c -
6-
// RUN: rm %S/b10_allsafepointerstruct.checked.c
4+
// RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s --
5+
// RUN: 3c -base-dir=%t.checked -alltypes %t.checked/b10_allsafepointerstruct.c -- | diff %t.checked/b10_allsafepointerstruct.c -
76
#include <stddef.h>
87
extern _Itype_for_any(T) void *calloc(size_t nmemb, size_t size) : itype(_Array_ptr<T>) byte_count(nmemb * size);
98
extern _Itype_for_any(T) void free(void *pointer : itype(_Array_ptr<T>) byte_count(0));

clang/test/3C/b11_calleestructnp.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
22
// RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
33
// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -fcheckedc-extension -x c -o /dev/null -
4-
// RUN: 3c -base-dir=%S -output-postfix=checked -alltypes %s
5-
// RUN: 3c -base-dir=%S -alltypes %S/b11_calleestructnp.checked.c -- | diff %S/b11_calleestructnp.checked.c -
6-
// RUN: rm %S/b11_calleestructnp.checked.c
4+
// RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s --
5+
// RUN: 3c -base-dir=%t.checked -alltypes %t.checked/b11_calleestructnp.c -- | diff %t.checked/b11_calleestructnp.c -
76
#include <stddef.h>
87
extern _Itype_for_any(T) void *calloc(size_t nmemb, size_t size) : itype(_Array_ptr<T>) byte_count(nmemb * size);
98
extern _Itype_for_any(T) void free(void *pointer : itype(_Array_ptr<T>) byte_count(0));

clang/test/3C/b12_callerstructnp.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
22
// RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
33
// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -fcheckedc-extension -x c -o /dev/null -
4-
// RUN: 3c -base-dir=%S -output-postfix=checked -alltypes %s
5-
// RUN: 3c -base-dir=%S -alltypes %S/b12_callerstructnp.checked.c -- | diff %S/b12_callerstructnp.checked.c -
6-
// RUN: rm %S/b12_callerstructnp.checked.c
4+
// RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s --
5+
// RUN: 3c -base-dir=%t.checked -alltypes %t.checked/b12_callerstructnp.c -- | diff %t.checked/b12_callerstructnp.c -
76
#include <stddef.h>
87
extern _Itype_for_any(T) void *calloc(size_t nmemb, size_t size) : itype(_Array_ptr<T>) byte_count(nmemb * size);
98
extern _Itype_for_any(T) void free(void *pointer : itype(_Array_ptr<T>) byte_count(0));

clang/test/3C/b13_calleestructp.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
22
// RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
33
// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -fcheckedc-extension -x c -o /dev/null -
4-
// RUN: 3c -base-dir=%S -output-postfix=checked -alltypes %s
5-
// RUN: 3c -base-dir=%S -alltypes %S/b13_calleestructp.checked.c -- | diff %S/b13_calleestructp.checked.c -
6-
// RUN: rm %S/b13_calleestructp.checked.c
4+
// RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s --
5+
// RUN: 3c -base-dir=%t.checked -alltypes %t.checked/b13_calleestructp.c -- | diff %t.checked/b13_calleestructp.c -
76
#include <stddef.h>
87
#include <stddef.h>
98
extern _Itype_for_any(T) void *calloc(size_t nmemb, size_t size) : itype(_Array_ptr<T>) byte_count(nmemb * size);

clang/test/3C/b14_callerstructp.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
22
// RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
33
// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -fcheckedc-extension -x c -o /dev/null -
4-
// RUN: 3c -base-dir=%S -output-postfix=checked -alltypes %s
5-
// RUN: 3c -base-dir=%S -alltypes %S/b14_callerstructp.checked.c -- | diff %S/b14_callerstructp.checked.c -
6-
// RUN: rm %S/b14_callerstructp.checked.c
4+
// RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s --
5+
// RUN: 3c -base-dir=%t.checked -alltypes %t.checked/b14_callerstructp.c -- | diff %t.checked/b14_callerstructp.c -
76
#include <stddef.h>
87
#include <stddef.h>
98
extern _Itype_for_any(T) void *calloc(size_t nmemb, size_t size) : itype(_Array_ptr<T>) byte_count(nmemb * size);

clang/test/3C/b15_calleepointerstruct.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
22
// RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
33
// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -fcheckedc-extension -x c -o /dev/null -
4-
// RUN: 3c -base-dir=%S -output-postfix=checked -alltypes %s
5-
// RUN: 3c -base-dir=%S -alltypes %S/b15_calleepointerstruct.checked.c -- | diff %S/b15_calleepointerstruct.checked.c -
6-
// RUN: rm %S/b15_calleepointerstruct.checked.c
4+
// RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s --
5+
// RUN: 3c -base-dir=%t.checked -alltypes %t.checked/b15_calleepointerstruct.c -- | diff %t.checked/b15_calleepointerstruct.c -
76
#include <stddef.h>
87
extern _Itype_for_any(T) void *calloc(size_t nmemb, size_t size) : itype(_Array_ptr<T>) byte_count(nmemb * size);
98
extern _Itype_for_any(T) void free(void *pointer : itype(_Array_ptr<T>) byte_count(0));

clang/test/3C/b16_callerpointerstruct.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
22
// RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
33
// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -fcheckedc-extension -x c -o /dev/null -
4-
// RUN: 3c -base-dir=%S -output-postfix=checked -alltypes %s
5-
// RUN: 3c -base-dir=%S -alltypes %S/b16_callerpointerstruct.checked.c -- | diff %S/b16_callerpointerstruct.checked.c -
6-
// RUN: rm %S/b16_callerpointerstruct.checked.c
4+
// RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s --
5+
// RUN: 3c -base-dir=%t.checked -alltypes %t.checked/b16_callerpointerstruct.c -- | diff %t.checked/b16_callerpointerstruct.c -
76
#include <stddef.h>
87
extern _Itype_for_any(T) void *calloc(size_t nmemb, size_t size) : itype(_Array_ptr<T>) byte_count(nmemb * size);
98
extern _Itype_for_any(T) void free(void *pointer : itype(_Array_ptr<T>) byte_count(0));

clang/test/3C/b17_bothstructnp.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
22
// RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
33
// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -fcheckedc-extension -x c -o /dev/null -
4-
// RUN: 3c -base-dir=%S -output-postfix=checked -alltypes %s
5-
// RUN: 3c -base-dir=%S -alltypes %S/b17_bothstructnp.checked.c -- | diff %S/b17_bothstructnp.checked.c -
6-
// RUN: rm %S/b17_bothstructnp.checked.c
4+
// RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s --
5+
// RUN: 3c -base-dir=%t.checked -alltypes %t.checked/b17_bothstructnp.c -- | diff %t.checked/b17_bothstructnp.c -
76
#include <stddef.h>
87
extern _Itype_for_any(T) void *calloc(size_t nmemb, size_t size) : itype(_Array_ptr<T>) byte_count(nmemb * size);
98
extern _Itype_for_any(T) void free(void *pointer : itype(_Array_ptr<T>) byte_count(0));

clang/test/3C/b18_bothstructp.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
22
// RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
33
// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -fcheckedc-extension -x c -o /dev/null -
4-
// RUN: 3c -base-dir=%S -output-postfix=checked -alltypes %s
5-
// RUN: 3c -base-dir=%S -alltypes %S/b18_bothstructp.checked.c -- | diff %S/b18_bothstructp.checked.c -
6-
// RUN: rm %S/b18_bothstructp.checked.c
4+
// RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s --
5+
// RUN: 3c -base-dir=%t.checked -alltypes %t.checked/b18_bothstructp.c -- | diff %t.checked/b18_bothstructp.c -
76
#include <stddef.h>
87
#include <stddef.h>
98
extern _Itype_for_any(T) void *calloc(size_t nmemb, size_t size) : itype(_Array_ptr<T>) byte_count(nmemb * size);

clang/test/3C/b19_bothpointerstruct.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
22
// RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
33
// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -fcheckedc-extension -x c -o /dev/null -
4-
// RUN: 3c -base-dir=%S -output-postfix=checked -alltypes %s
5-
// RUN: 3c -base-dir=%S -alltypes %S/b19_bothpointerstruct.checked.c -- | diff %S/b19_bothpointerstruct.checked.c -
6-
// RUN: rm %S/b19_bothpointerstruct.checked.c
4+
// RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s --
5+
// RUN: 3c -base-dir=%t.checked -alltypes %t.checked/b19_bothpointerstruct.c -- | diff %t.checked/b19_bothpointerstruct.c -
76
#include <stddef.h>
87
extern _Itype_for_any(T) void *calloc(size_t nmemb, size_t size) : itype(_Array_ptr<T>) byte_count(nmemb * size);
98
extern _Itype_for_any(T) void free(void *pointer : itype(_Array_ptr<T>) byte_count(0));

clang/test/3C/b1_allsafe.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
22
// RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
33
// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -fcheckedc-extension -x c -o /dev/null -
4-
// RUN: 3c -base-dir=%S -output-postfix=checked -alltypes %s
5-
// RUN: 3c -base-dir=%S -alltypes %S/b1_allsafe.checked.c -- | diff %S/b1_allsafe.checked.c -
6-
// RUN: rm %S/b1_allsafe.checked.c
4+
// RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s --
5+
// RUN: 3c -base-dir=%t.checked -alltypes %t.checked/b1_allsafe.c -- | diff %t.checked/b1_allsafe.c -
76
#include <stddef.h>
87
extern _Itype_for_any(T) void *calloc(size_t nmemb, size_t size) : itype(_Array_ptr<T>) byte_count(nmemb * size);
98
extern _Itype_for_any(T) void free(void *pointer : itype(_Array_ptr<T>) byte_count(0));

clang/test/3C/b20_allsafepointerstructproto.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
22
// RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
33
// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -fcheckedc-extension -x c -o /dev/null -
4-
// RUN: 3c -base-dir=%S -output-postfix=checked -alltypes %s
5-
// RUN: 3c -base-dir=%S -alltypes %S/b20_allsafepointerstructproto.checked.c -- | diff %S/b20_allsafepointerstructproto.checked.c -
6-
// RUN: rm %S/b20_allsafepointerstructproto.checked.c
4+
// RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s --
5+
// RUN: 3c -base-dir=%t.checked -alltypes %t.checked/b20_allsafepointerstructproto.c -- | diff %t.checked/b20_allsafepointerstructproto.c -
76
#include <stddef.h>
87
extern _Itype_for_any(T) void *calloc(size_t nmemb, size_t size) : itype(_Array_ptr<T>) byte_count(nmemb * size);
98
extern _Itype_for_any(T) void free(void *pointer : itype(_Array_ptr<T>) byte_count(0));

clang/test/3C/b21_calleepointerstructproto.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
22
// RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
33
// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -fcheckedc-extension -x c -o /dev/null -
4-
// RUN: 3c -base-dir=%S -output-postfix=checked -alltypes %s
5-
// RUN: 3c -base-dir=%S -alltypes %S/b21_calleepointerstructproto.checked.c -- | diff %S/b21_calleepointerstructproto.checked.c -
6-
// RUN: rm %S/b21_calleepointerstructproto.checked.c
4+
// RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s --
5+
// RUN: 3c -base-dir=%t.checked -alltypes %t.checked/b21_calleepointerstructproto.c -- | diff %t.checked/b21_calleepointerstructproto.c -
76
#include <stddef.h>
87
extern _Itype_for_any(T) void *calloc(size_t nmemb, size_t size) : itype(_Array_ptr<T>) byte_count(nmemb * size);
98
extern _Itype_for_any(T) void free(void *pointer : itype(_Array_ptr<T>) byte_count(0));

clang/test/3C/b22_callerpointerstructproto.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
22
// RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
33
// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -fcheckedc-extension -x c -o /dev/null -
4-
// RUN: 3c -base-dir=%S -output-postfix=checked -alltypes %s
5-
// RUN: 3c -base-dir=%S -alltypes %S/b22_callerpointerstructproto.checked.c -- | diff %S/b22_callerpointerstructproto.checked.c -
6-
// RUN: rm %S/b22_callerpointerstructproto.checked.c
4+
// RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s --
5+
// RUN: 3c -base-dir=%t.checked -alltypes %t.checked/b22_callerpointerstructproto.c -- | diff %t.checked/b22_callerpointerstructproto.c -
76
#include <stddef.h>
87
extern _Itype_for_any(T) void *calloc(size_t nmemb, size_t size) : itype(_Array_ptr<T>) byte_count(nmemb * size);
98
extern _Itype_for_any(T) void free(void *pointer : itype(_Array_ptr<T>) byte_count(0));

clang/test/3C/b23_explicitunsafecast.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
22
// RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
33
// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -fcheckedc-extension -x c -o /dev/null -
4-
// RUN: 3c -base-dir=%S -output-postfix=checked -alltypes %s
5-
// RUN: 3c -base-dir=%S -alltypes %S/b23_explicitunsafecast.checked.c -- | diff %S/b23_explicitunsafecast.checked.c -
6-
// RUN: rm %S/b23_explicitunsafecast.checked.c
4+
// RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s --
5+
// RUN: 3c -base-dir=%t.checked -alltypes %t.checked/b23_explicitunsafecast.c -- | diff %t.checked/b23_explicitunsafecast.c -
76
#include <stddef.h>
87
extern _Itype_for_any(T) void *calloc(size_t nmemb, size_t size) : itype(_Array_ptr<T>) byte_count(nmemb * size);
98
extern _Itype_for_any(T) void free(void *pointer : itype(_Array_ptr<T>) byte_count(0));

clang/test/3C/b23_retswitchexplicit.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
22
// RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
33
// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -fcheckedc-extension -x c -o /dev/null -
4-
// RUN: 3c -base-dir=%S -output-postfix=checked -alltypes %s
5-
// RUN: 3c -base-dir=%S -alltypes %S/b23_retswitchexplicit.checked.c -- | diff %S/b23_retswitchexplicit.checked.c -
6-
// RUN: rm %S/b23_retswitchexplicit.checked.c
4+
// RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s --
5+
// RUN: 3c -base-dir=%t.checked -alltypes %t.checked/b23_retswitchexplicit.c -- | diff %t.checked/b23_retswitchexplicit.c -
76
#include <stddef.h>
87
extern _Itype_for_any(T) void *calloc(size_t nmemb, size_t size) : itype(_Array_ptr<T>) byte_count(nmemb * size);
98
extern _Itype_for_any(T) void free(void *pointer : itype(_Array_ptr<T>) byte_count(0));

clang/test/3C/b24_implicitunsafecast.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
22
// RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
33
// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -fcheckedc-extension -x c -o /dev/null -
4-
// RUN: 3c -base-dir=%S -output-postfix=checked -alltypes %s
5-
// RUN: 3c -base-dir=%S -alltypes %S/b24_implicitunsafecast.checked.c -- | diff %S/b24_implicitunsafecast.checked.c -
6-
// RUN: rm %S/b24_implicitunsafecast.checked.c
4+
// RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s --
5+
// RUN: 3c -base-dir=%t.checked -alltypes %t.checked/b24_implicitunsafecast.c -- | diff %t.checked/b24_implicitunsafecast.c -
76
#include <stddef.h>
87
extern _Itype_for_any(T) void *calloc(size_t nmemb, size_t size) : itype(_Array_ptr<T>) byte_count(nmemb * size);
98
extern _Itype_for_any(T) void free(void *pointer : itype(_Array_ptr<T>) byte_count(0));

clang/test/3C/b24_retswitchimplicit.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
22
// RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
33
// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -fcheckedc-extension -x c -o /dev/null -
4-
// RUN: 3c -base-dir=%S -output-postfix=checked -alltypes %s
5-
// RUN: 3c -base-dir=%S -alltypes %S/b24_retswitchimplicit.checked.c -- | diff %S/b24_retswitchimplicit.checked.c -
6-
// RUN: rm %S/b24_retswitchimplicit.checked.c
4+
// RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s --
5+
// RUN: 3c -base-dir=%t.checked -alltypes %t.checked/b24_retswitchimplicit.c -- | diff %t.checked/b24_retswitchimplicit.c -
76
#include <stddef.h>
87
extern _Itype_for_any(T) void *calloc(size_t nmemb, size_t size) : itype(_Array_ptr<T>) byte_count(nmemb * size);
98
extern _Itype_for_any(T) void free(void *pointer : itype(_Array_ptr<T>) byte_count(0));

clang/test/3C/b25_castprotosafe.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
22
// RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
33
// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -fcheckedc-extension -x c -o /dev/null -
4-
// RUN: 3c -base-dir=%S -output-postfix=checked -alltypes %s
5-
// RUN: 3c -base-dir=%S -alltypes %S/b25_castprotosafe.checked.c -- | diff %S/b25_castprotosafe.checked.c -
6-
// RUN: rm %S/b25_castprotosafe.checked.c
4+
// RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s --
5+
// RUN: 3c -base-dir=%t.checked -alltypes %t.checked/b25_castprotosafe.c -- | diff %t.checked/b25_castprotosafe.c -
76
#include <stddef.h>
87
extern _Itype_for_any(T) void *calloc(size_t nmemb, size_t size) : itype(_Array_ptr<T>) byte_count(nmemb * size);
98
extern _Itype_for_any(T) void free(void *pointer : itype(_Array_ptr<T>) byte_count(0));

clang/test/3C/b26_castprotounsafe.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
22
// RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
33
// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -fcheckedc-extension -x c -o /dev/null -
4-
// RUN: 3c -base-dir=%S -output-postfix=checked -alltypes %s
5-
// RUN: 3c -base-dir=%S -alltypes %S/b26_castprotounsafe.checked.c -- | diff %S/b26_castprotounsafe.checked.c -
6-
// RUN: rm %S/b26_castprotounsafe.checked.c
4+
// RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s --
5+
// RUN: 3c -base-dir=%t.checked -alltypes %t.checked/b26_castprotounsafe.c -- | diff %t.checked/b26_castprotounsafe.c -
76
#include <stddef.h>
87
extern _Itype_for_any(T) void *calloc(size_t nmemb, size_t size) : itype(_Array_ptr<T>) byte_count(nmemb * size);
98
extern _Itype_for_any(T) void free(void *pointer : itype(_Array_ptr<T>) byte_count(0));

clang/test/3C/b26_castprotounsafeimplicit.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
22
// RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
33
// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -fcheckedc-extension -x c -o /dev/null -
4-
// RUN: 3c -base-dir=%S -output-postfix=checked -alltypes %s
5-
// RUN: 3c -base-dir=%S -alltypes %S/b26_castprotounsafeimplicit.checked.c -- | diff %S/b26_castprotounsafeimplicit.checked.c -
6-
// RUN: rm %S/b26_castprotounsafeimplicit.checked.c
4+
// RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s --
5+
// RUN: 3c -base-dir=%t.checked -alltypes %t.checked/b26_castprotounsafeimplicit.c -- | diff %t.checked/b26_castprotounsafeimplicit.c -
76
#include <stddef.h>
87
extern _Itype_for_any(T) void *calloc(size_t nmemb, size_t size) : itype(_Array_ptr<T>) byte_count(nmemb * size);
98
extern _Itype_for_any(T) void free(void *pointer : itype(_Array_ptr<T>) byte_count(0));

0 commit comments

Comments
 (0)