[NDS32] Add intrinsic functions for TLB operation and data prefech.
[official-gcc.git] / gcc / testsuite / gcc.dg / const-2.c
blobe48005dfb0ad4b80b2c448748b6d01394c4cbe76
1 /* PR tree-optimization/83559 - -Wsuggest-attribute=const conflicts with
2 -Wattributes warning about const attribute on function returning void
3 { dg-do compile { target nonpic } }
4 { dg-options "-O2 -Wsuggest-attribute=const" } */
6 int f_i_v (void) /* { dg-warning "candidate for attribute .const." } */
8 return 0;
11 int f_i () /* { dg-warning "candidate for attribute .const." } */
13 return 0;
16 void f_v_v (void) /* { dg-bogus "candidate" } */
20 void f_v () /* { dg-bogus "candidate" } */