aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/attr-unavailable-6.c
blob: f5f4560c73507c1d9a39b6fb66faf0d98f1fa655 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* 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" } */
}