aboutsummaryrefslogtreecommitdiff
path: root/SingleSource/Regression/C/gcc-c-torture/execute/builtins/strcpy-chk.x
diff options
context:
space:
mode:
Diffstat (limited to 'SingleSource/Regression/C/gcc-c-torture/execute/builtins/strcpy-chk.x')
-rw-r--r--SingleSource/Regression/C/gcc-c-torture/execute/builtins/strcpy-chk.x13
1 files changed, 13 insertions, 0 deletions
diff --git a/SingleSource/Regression/C/gcc-c-torture/execute/builtins/strcpy-chk.x b/SingleSource/Regression/C/gcc-c-torture/execute/builtins/strcpy-chk.x
new file mode 100644
index 00000000..61ec1640
--- /dev/null
+++ b/SingleSource/Regression/C/gcc-c-torture/execute/builtins/strcpy-chk.x
@@ -0,0 +1,13 @@
+load_lib target-supports.exp
+
+if { ! [check_effective_target_nonlocal_goto] } {
+ return 1
+}
+
+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