Changeset View
Changeset View
Standalone View
Standalone View
autotests/folding/test.c.fold
1 | #include <stdio.h> | 1 | #include <stdio.h> | ||
---|---|---|---|---|---|
2 | #include "stdint.h" | 2 | #include "stdint.h" | ||
3 | 3 | | |||
4 | #define SOME_VAR 1 | 4 | #define SOME_VAR 1 | ||
5 | <beginfold id='1'>#ifdef</beginfold id='1'> SOME_VAR | 5 | <beginfold id='1'>#ifdef</beginfold id='1'> SOME_VAR | ||
6 | 6 | | |||
7 | #define MULTILINE_MACRO one \ | 7 | #define MULTILINE_MACRO one \ | ||
8 | two \ | 8 | two \ | ||
9 | three | 9 | three | ||
10 | 10 | | |||
11 | static uint64_t intWithSuffix = 42ull; | 11 | static uint64_t intWithSuffix = 42ull + ~1233L; | ||
12 | static int octNum = 07232; | 12 | static int octNum = 07232; | ||
13 | static int invalidOctNum = 09231; | 13 | static int invalidOctNum = 09231; | ||
14 | static uint64_t hexNum = 0xDEADBEEF42; | 14 | static uint64_t hexNum = 0xDEADBEEF42; | ||
15 | static uint64_t invalidHexNum = 0xGLDFKG; | 15 | static uint64_t invalidHexNum = 0xGLDFKG; | ||
16 | static char binNum = 0b0101010; | 16 | static char binNum = 0b0101010; | ||
17 | 17 | | |||
18 | static double d1 = 42.; | 18 | static double d1 = 42. + 0x1.5p+2; | ||
19 | static double d2 = .42; | 19 | static double d2 = .42; | ||
20 | static double d3 = 42.3e1; | 20 | static double d3 = 42.3e1; | ||
21 | static double d4 = .2e-12; | 21 | static double d4 = .2e-12; | ||
22 | static double d5 = 32.e+12; | 22 | static double d5 = 32.e+12; | ||
23 | static float floatQualifier = 23.123f; | 23 | static float floatQualifier = 23.123f; | ||
24 | 24 | | |||
25 | static const char c1 = 'c'; | 25 | static const char c1 = 'c'; | ||
26 | static const char c2 = '\n'; | 26 | static const char c2 = '\n'; | ||
Show All 30 Lines |