20001011-1.c: New testcase.
authorGeoff Keating <geoffk@cygnus.com>
Wed, 11 Oct 2000 17:52:47 +0000 (17:52 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Wed, 11 Oct 2000 17:52:47 +0000 (17:52 +0000)
* gcc.c-torture/execute/20001011-1.c: New testcase.
Testcase provided by Zack Weinberg <zackw@stanford.edu>.

From-SVN: r36839

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20001011-1.c [new file with mode: 0644]

index 6525c54fcd7455bb49fd03024f657af7bf7bcca8..1f1578635e134fa2127d98340a50242590e1d719 100644 (file)
@@ -1,3 +1,8 @@
+2000-10-11  Geoff Keating  <geoffk@cygnus.com>
+
+       * gcc.c-torture/execute/20001011-1.c: New testcase.
+       Testcase provided by Zack Weinberg <zackw@stanford.edu>.
+
 2000-10-10  Jakub Jelinek  <jakub@redhat.com>
 
        * gcc.dg/991209-1.c (stack_ptr): Use __asm, not asm, so that -ansi
diff --git a/gcc/testsuite/gcc.c-torture/execute/20001011-1.c b/gcc/testsuite/gcc.c-torture/execute/20001011-1.c
new file mode 100644 (file)
index 0000000..ffdcb9f
--- /dev/null
@@ -0,0 +1,14 @@
+extern void abort(void);
+extern int strcmp(const char *, const char *);
+
+int foo(const char *a)
+{
+    return strcmp(a, "main");
+}
+
+int main(void)
+{
+    if(foo(__FUNCTION__))
+        abort();
+    return 0;
+}