diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/builtins/stpncpy-chk.x')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/builtins/stpncpy-chk.x | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/stpncpy-chk.x b/gcc/testsuite/gcc.c-torture/execute/builtins/stpncpy-chk.x new file mode 100644 index 0000000000..e976a755ba --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/builtins/stpncpy-chk.x @@ -0,0 +1,7 @@ +if [istarget "epiphany-*-*"] { + # This test assumes the absence of struct padding. + # to make this true for test4 struct A on epiphany would require + # __attribute__((packed)) . + return 1 +} +return 0 |