math: improve how get_absolute_min/max() work
[smatch.git] / validation / preprocessor / preprocessor6.c
blob41da2674d93f255ae19ecdae47212a1b6a3a75d9
1 /* We used to get '##' wrong for the kernel.
3 * It could possibly be argued that the kernel usage is undefined (since the
4 * different sides of the '##' are not proper tokens), but we try to do it
5 * right anyway.
7 * We used to break up the "003d" into two tokens ('003' and 'd') and then put
8 * the 'o' marker to mark the token 003 as an octal number, resulting in:
10 * static char __vendorstr_o03 d [ ] __devinitdata = "Lockheed Martin-Marietta Corp";
12 * which didn't work, of course.
15 #define __devinitdata __attribute__((section(".devinit")))
17 #define VENDOR( vendor, name ) \
18 static char __vendorstr_##vendor[] __devinitdata = name;
19 VENDOR(003d,"Lockheed Martin-Marietta Corp")
22 * check-name: Preprocessor #6
23 * check-command: sparse -E $file
25 * check-output-start
27 static char __vendorstr_003d[] __attribute__((section(".devinit"))) = "Lockheed Martin-Marietta Corp";
28 * check-output-end