side_effects: the iterate_all_kinds() macro has side effects deliberately
[smatch.git] / validation / __func__.c
blob65ce92825f4cc94b3d331a2b7c078faebf81065e
1 static void f(void)
3 char *s1 = __func__;
4 char arr[2 * (sizeof __func__ == 2) - 1];
5 char *s2 = __func__ __func__;
7 /*
8 * check-name: __func__
9 * check-command: sparse -Wall $file
11 * check-error-start
12 __func__.c:5:29: error: Expected ; at end of declaration
13 __func__.c:5:29: error: got __func__
14 * check-error-end