Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/deprecated-6.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* Test __attribute__((deprecated)). Test merging with multiple |
2 declarations. Bug 7425. */ | |
3 /* { dg-do compile } */ | |
4 /* { dg-options "" } */ | |
5 | |
6 void func(void); | |
7 void func(void) __attribute__((deprecated ("Do not use"))); | |
8 | |
9 void f(void) { | |
10 func(); /* { dg-warning "'func' is deprecated: Do not use" } */ | |
11 } |