diff options
Diffstat (limited to 'validation/backend/pointer-cmp.c')
| -rw-r--r-- | validation/backend/pointer-cmp.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/validation/backend/pointer-cmp.c b/validation/backend/pointer-cmp.c new file mode 100644 index 00000000..fa76d1b5 --- /dev/null +++ b/validation/backend/pointer-cmp.c @@ -0,0 +1,9 @@ +int cmpint( int x, int y) { return x == y; } +int cmpflt( float x, float y) { return x == y; } +int cmpvptr(void *x, void *y) { return x == y; } +int cmpiptr(int *x, int *y) { return x == y; } + +/* + * check-name: pointer comparison + * check-command: ./sparsec -Wno-decl -c $file -o tmp.o + */ |
