| 1 | namespace src { |
|---|---|
| 2 | |
| 3 | void foo() { |
| 4 | int x = 321; |
| 5 | } |
| 6 | |
| 7 | void main() { foo(); }; |
| 8 | |
| 9 | const char *a = "foo"; |
| 10 | |
| 11 | typedef unsigned int nat; |
| 12 | |
| 13 | int p = 1 * 2 * 3 * 4; |
| 14 | int squared = p * p; |
| 15 | |
| 16 | class X { |
| 17 | const char *foo(int i) { |
| 18 | if (i == 0) |
| 19 | return "foo"; |
| 20 | return 0; |
| 21 | } |
| 22 | |
| 23 | public: |
| 24 | X(){}; |
| 25 | |
| 26 | int id(int i) { return i; } |
| 27 | }; |
| 28 | } |
| 29 | |
| 30 | void m() { int x = 0 + 0 + 0; } |
| 31 | int um = 1 * 2 + 3; |
| 32 | |
| 33 | void f1() {{ (void) __func__;;; }} |
| 34 |