Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / attr-weak-hidden-1.c
blob968bab7ad34ac989a5bdeddfef2e872a26017603
1 /* { dg-do run } */
2 /* { dg-require-weak "" } */
3 /* { dg-require-visibility "" } */
4 /* { dg-options "-O2" } */
5 /* { dg-additional-sources "attr-weak-hidden-1a.c" } */
6 int __attribute__((weak, visibility("hidden"))) foo (void) { return 0; }