summaryrefslogtreecommitdiff
path: root/regress/gnu/egcs/gcc-builtins/strcpy-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'regress/gnu/egcs/gcc-builtins/strcpy-2.c')
-rw-r--r--regress/gnu/egcs/gcc-builtins/strcpy-2.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/regress/gnu/egcs/gcc-builtins/strcpy-2.c b/regress/gnu/egcs/gcc-builtins/strcpy-2.c
new file mode 100644
index 00000000000..3862ff16ff6
--- /dev/null
+++ b/regress/gnu/egcs/gcc-builtins/strcpy-2.c
@@ -0,0 +1,12 @@
+#include <string.h>
+
+int
+main(int argc, char **argv)
+{
+ char buf[10];
+
+ /* This expression can be folded. */
+ strcpy(buf, "foo");
+
+ return (1);
+}