slice: remove unneeded nr_nrbits from EXPR_SLICE
[smatch.git] / validation / asm-bad0.c
blob4ba7857529e31eb1721b0c8782900626371984a7
1 extern char string[];
2 extern int *var;
4 static void templ(void)
6 asm(string);
9 static void ocons(void)
11 asm("template" : [out] string (var) : [in] "r" (0));
14 static void icons(void)
16 asm("template" : [out] "=r" (var): [in] string (0));
19 static void oexpr(void)
21 asm("template" : [out] "=" (var[) : [in] "r" (0));
24 static void iexpr(void)
26 asm("template" : [out] "=r" (var) : [in] "r" (var[));
30 * check-name: asm-bad0
32 * check-error-start
33 asm-bad0.c:6:13: error: string literal expected for inline asm
34 asm-bad0.c:11:32: error: string literal expected for asm constraint
35 asm-bad0.c:16:49: error: string literal expected for asm constraint
36 asm-bad0.c:21:41: error: Expected ] at end of array dereference
37 asm-bad0.c:21:41: error: got )
38 asm-bad0.c:26:59: error: Expected ] at end of array dereference
39 asm-bad0.c:26:59: error: got )
40 * check-error-end