• Home
  • Raw
  • Download

Lines Matching refs:swallow

3 void swallow (const char *x) { (void)x; }  in swallow()  function
8 swallow("Hello world!" + 6); // no-warning in test_pointer_arithmetic()
9 swallow("Hello world!" - 6); // expected-warning {{refers before the beginning of the array}} in test_pointer_arithmetic()
10 swallow("Hello world!" + 14); // expected-warning {{refers past the end of the array}} in test_pointer_arithmetic()
11 swallow("Hello world!" + 13); // no-warning in test_pointer_arithmetic()
13 swallow(hello + 6); // no-warning in test_pointer_arithmetic()
14 swallow(hello - 6); // expected-warning {{refers before the beginning of the array}} in test_pointer_arithmetic()
15 swallow(hello + 14); // expected-warning {{refers past the end of the array}} in test_pointer_arithmetic()
16 swallow(hello + 13); // no-warning in test_pointer_arithmetic()
18 swallow(helloptr + 6); // no-warning in test_pointer_arithmetic()
19 swallow(helloptr - 6); // no-warning in test_pointer_arithmetic()
20 swallow(helloptr + 14); // no-warning in test_pointer_arithmetic()
21 swallow(helloptr + 13); // no-warning in test_pointer_arithmetic()
24 swallow((char*)numbers + sizeof(double)); // no-warning in test_pointer_arithmetic()
25 swallow((char*)numbers + 60); // expected-warning {{refers past the end of the array}} in test_pointer_arithmetic()
29 swallow(buffer + sizeof("Hello")-1); // expected-warning {{refers past the end of the array}} in test_pointer_arithmetic()
30 swallow(buffer + (sizeof("Hello")-1)); // no-warning in test_pointer_arithmetic()
31 …if (n > 0 && n <= 6) swallow(buffer + 6 - n); // expected-warning {{refers past the end of the arr… in test_pointer_arithmetic()
32 if (n > 0 && n <= 6) swallow(buffer + (6 - n)); // no-warning in test_pointer_arithmetic()