]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Wed, 3 Mar 2004 00:34:49 +0000 (00:34 +0000)
committerNo Author <no-author@gcc.gnu.org>
Wed, 3 Mar 2004 00:34:49 +0000 (00:34 +0000)
'gcc-3_3-branch'.

From-SVN: r78800

gcc/testsuite/gcc.c-torture/execute/20040302-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/inline-5.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.c-torture/execute/20040302-1.c b/gcc/testsuite/gcc.c-torture/execute/20040302-1.c
new file mode 100644 (file)
index 0000000..07056c4
--- /dev/null
@@ -0,0 +1,24 @@
+int code[]={0,0,0,0,1};
+
+void foo(int x) {
+  volatile int b;
+  b = 0xffffffff;
+}
+
+void bar(int *pc) {
+  static const void *l[] = {&&lab0, &&end};
+
+  foo(0);
+  goto *l[*pc];
+ lab0:
+  foo(0);
+  pc++;
+  goto *l[*pc];
+ end:
+  return;
+}
+
+int main() {
+  bar(code);
+  return 0;
+}
diff --git a/gcc/testsuite/gcc.dg/inline-5.c b/gcc/testsuite/gcc.dg/inline-5.c
new file mode 100644 (file)
index 0000000..d72fad6
--- /dev/null
@@ -0,0 +1,13 @@
+/* PR middle-end/13448 */
+
+/* { dg-options "-O3" } */
+
+void funct (const int n)
+{
+  n++; /* { dg-error "" } */
+}
+
+int main () {
+  funct (1);
+  return 0;
+}