Dale Johannesen | c54a8ab | 2008-06-10 18:00:09 +0000 | [diff] [blame] | 1 | // RUN: %llvmgcc -w %s -S -o - |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 2 | // PR854 |
| 3 | struct kernel_symbol { |
| 4 | unsigned long value; |
| 5 | }; |
| 6 | unsigned long loops_per_jiffy = (1<<12); |
| 7 | static const char __kstrtab_loops_per_jiffy[] |
| 8 | __attribute__((section("__ksymtab_strings"))) = "loops_per_jiffy"; |
| 9 | static const struct kernel_symbol __ksymtab_loops_per_jiffy |
| 10 | __attribute__((__used__)) __attribute__((section("__ksymtab"))) = { (unsigned |
| 11 | long)&loops_per_jiffy, __kstrtab_loops_per_jiffy }; |