| 1 |
// RUN: %clang_delta --transformation=remove-unused-function --counter=1 %s 2>&1 | %remove_lit_checks | FileCheck %s |
| 2 |
|
| 3 |
// CHECK: #define __LEAF, __leaf__ |
| 4 |
#define __LEAF, __leaf__ |
| 5 |
// CHECK: #define __THROW __attribute__((__nothrow__ __LEAF)) |
| 6 |
#define __THROW __attribute__((__nothrow__ __LEAF)) |
| 7 |
// CHECK: # define __nonnull(params) __attribute__ ((__nonnull__ params)) |
| 8 |
# define __nonnull(params) __attribute__ ((__nonnull__ params)) |
| 9 |
|
| 10 |
// CHECK-NOT: extern void *foo(void* __restrict p1 |
| 11 |
extern void *foo(void* __restrict p1, const void* __restrict p2, |
| 12 |
// CHECK-NOT: int p3, unsigned p4) |
| 13 |
int p3, unsigned p4) |
| 14 |
// CHECK-NOT: __THROW __nonnull ((1, 2)); |
| 15 |
__THROW __nonnull ((1, 2)); |