Alexander Kornienko | 9803850 | 2014-12-08 11:17:25 +0000 | [diff] [blame] | 1 | // RUN: clang-tidy -checks=-*,google-runtime-int %s -- -x c 2>&1 | not grep 'warning:\|error:' |
| 2 | |
| 3 | long a(); |
| 4 | |
| 5 | long b(long x); |
| 6 | |
| 7 | short bar(const short q, unsigned short w) { |
| 8 | long double foo; |
| 9 | unsigned short port; |
| 10 | |
| 11 | const unsigned short bar; |
| 12 | long long *baar; |
| 13 | const unsigned short bara; |
| 14 | long const long moo; |
| 15 | long volatile long wat; |
| 16 | unsigned long y; |
| 17 | unsigned long long **const *tmp; |
| 18 | unsigned short porthole; |
| 19 | |
| 20 | unsigned cast; |
| 21 | cast = (short)42; |
| 22 | return q; |
| 23 | } |
| 24 | |
| 25 | void qux() { |
| 26 | short port; |
| 27 | } |