This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] new exec-charset testcase
- From: Eric Christopher <echristo at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 19 Apr 2004 14:55:15 -0700
- Subject: [patch] new exec-charset testcase
Things you didn't realize people do... I have a similar one for c++ but
it doesn't work without a patch I've posted - and unfortunately I've
found some other problems so for c++ i'll see what I can do there.
OK? Does this qualify as "obvious"?
-eric
--
Eric Christopher <echristo@redhat.com>
2004-04-19 Eric Christopher <echristo@redhat.com>
* gcc.dg/charset/extern.c: New test.
Index: gcc/testsuite/gcc.dg/charset/extern.c
===================================================================
RCS file: gcc/testsuite/gcc.dg/charset/extern.c
diff -N gcc/testsuite/gcc.dg/charset/extern.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ gcc/testsuite/gcc.dg/charset/extern.c 19 Apr 2004 21:54:14 -0000
@@ -0,0 +1,8 @@
+/* { dg-do compile }
+ { dg-require-iconv "IBM-1047" }
+ { dg-final { scan-assembler-not "abcdefghijklmnopqrstuvwxyz" } } */
+
+extern void foo (void)
+{
+ char str[]="abcdefghijklmnopqrstuvwxyz";
+}