aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/testsuite/gcc.dg/comp-return-1.c
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-10-13 16:28:19 -0700
committerDan Albert <danalbert@google.com>2015-10-13 16:28:19 -0700
commita8c075f72b231c37823661ba0d7d082a21cd39d9 (patch)
tree395aa3b848d56037292e50466643453485073018 /gcc-4.8/gcc/testsuite/gcc.dg/comp-return-1.c
parent5aff2e0142aca13849b4e51de503e71d5010efa6 (diff)
downloadtoolchain_gcc-a8c075f72b231c37823661ba0d7d082a21cd39d9.tar.gz
toolchain_gcc-a8c075f72b231c37823661ba0d7d082a21cd39d9.tar.bz2
toolchain_gcc-a8c075f72b231c37823661ba0d7d082a21cd39d9.zip
Remove gcc-4.8.
Change-Id: Iee9c6985c613f58c82e33a91722d371579eb290f
Diffstat (limited to 'gcc-4.8/gcc/testsuite/gcc.dg/comp-return-1.c')
-rw-r--r--gcc-4.8/gcc/testsuite/gcc.dg/comp-return-1.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/gcc-4.8/gcc/testsuite/gcc.dg/comp-return-1.c b/gcc-4.8/gcc/testsuite/gcc.dg/comp-return-1.c
deleted file mode 100644
index 82c398355..000000000
--- a/gcc-4.8/gcc/testsuite/gcc.dg/comp-return-1.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/* When merging a nonprototype definition of a function with a prior
- prototype declaration, the composite type of the return types must
- be formed rather than just copying the function type. */
-/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
-/* { dg-do compile } */
-
-typedef int a[];
-typedef int a5[5];
-typedef int a10[10];
-
-a *f1 ();
-a5 *f1 () { return 0; }
-
-a *f2 (void);
-a5 *f2 () { return 0; }
-
-a *f3 ();
-a5 *f3 (void) { return 0; }
-
-a *f4 (void);
-a5 *f4 (void) { return 0; }
-
-void
-g (void)
-{
- a10 *x;
- x = f1 (); /* { dg-error "incompatible" "f1" } */
- x = f2 (); /* { dg-error "incompatible" "f2" } */
- x = f3 (); /* { dg-error "incompatible" "f3" } */
- x = f4 (); /* { dg-error "incompatible" "f4" } */
-}