diff options
author | Dan Albert <danalbert@google.com> | 2015-10-13 16:28:19 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2015-10-13 16:28:19 -0700 |
commit | a8c075f72b231c37823661ba0d7d082a21cd39d9 (patch) | |
tree | 395aa3b848d56037292e50466643453485073018 /gcc-4.8/gcc/testsuite/gcc.dg/declspec-3.c | |
parent | 5aff2e0142aca13849b4e51de503e71d5010efa6 (diff) | |
download | toolchain_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/declspec-3.c')
-rw-r--r-- | gcc-4.8/gcc/testsuite/gcc.dg/declspec-3.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/gcc-4.8/gcc/testsuite/gcc.dg/declspec-3.c b/gcc-4.8/gcc/testsuite/gcc.dg/declspec-3.c deleted file mode 100644 index 95052a986..000000000 --- a/gcc-4.8/gcc/testsuite/gcc.dg/declspec-3.c +++ /dev/null @@ -1,34 +0,0 @@ -/* Test declaration specifiers. Test diagnosis of storage class - specifiers not at start. */ -/* Origin: Joseph Myers <jsm@polyomino.org.uk> */ -/* { dg-do compile } */ -/* { dg-options "-Wold-style-declaration" } */ - -static int x0; -int static x1; /* { dg-warning "not at beginning" } */ - -extern int x2; -int extern x3; /* { dg-warning "not at beginning" } */ - -typedef int x4; -int typedef x5; /* { dg-warning "not at beginning" } */ - -void g (int); - -void -f (void) -{ - auto int x6 = 0; - int auto x7 = 0; /* { dg-warning "not at beginning" } */ - register int x8 = 0; - int register x9 = 0; /* { dg-warning "not at beginning" } */ - g (x6 + x7 + x8 + x9); -} - -const static int x10; /* { dg-warning "not at beginning" } */ - -/* Attributes are OK before storage class specifiers, since some - attributes are like such specifiers themselves. */ - -__attribute__((format(printf, 1, 2))) static void h (const char *, ...); -__attribute__((format(printf, 1, 2))) void static i (const char *, ...); /* { dg-warning "not at beginning" } */ |