12 lines
296 B
C
12 lines
296 B
C
/* Test __attribute__((unavailable)). Test merging with multiple
|
|
declarations. */
|
|
/* { dg-do compile } */
|
|
/* { dg-options "" } */
|
|
|
|
void func(void);
|
|
void func(void) __attribute__((unavailable ("Do not use")));
|
|
|
|
void f(void) {
|
|
func(); /* { dg-error "'func' is unavailable: Do not use" } */
|
|
}
|