Commit | Line | Data |
---|---|---|
487b6440 AM |
1 | #include <stdio.h> |
2 | ||
3 | extern int foo (void); | |
4 | ||
5 | extern int __start___verbose[]; | |
6 | extern int __stop___verbose[]; | |
7 | static int my_var __attribute__((used, section("__verbose"))) = 6; | |
8 | int bar (void) | |
9 | { | |
10 | if (__start___verbose == __stop___verbose) | |
11 | return -1; | |
12 | ||
13 | if (__start___verbose[0] != 6) | |
14 | return -2; | |
15 | else | |
16 | return 0; | |
17 | } | |
18 | ||
19 | int main() | |
20 | { | |
21 | if (bar () == 0 && foo () == 0) | |
22 | printf ("PASS\n"); | |
23 | return 0; | |
24 | } |