github.com/Konstantin8105/c4go@v0.0.0-20240505174241-768bb1c65a51/tests/code_quality/operators.c (about) 1 void f(unsigned d) 2 { 3 (void)(d); 4 } 5 6 #define NULL (void*)0 7 8 void operators_equals() 9 { 10 int a, b, c, d; 11 a = b = c = d = 42; 12 13 int q1 = 42; 14 unsigned q2 = 42; 15 long q3 = 42; 16 long long q4 = 42; 17 short q5 = 42; 18 19 int w1 = (long long)(42); 20 unsigned w2 = (long long)(42); 21 long w3 = (long long)(42); 22 long long w4 = (long long)(42); 23 short w5 = (long long)(42); 24 25 // zero value 26 int s1 = 0; 27 unsigned s2 = 0; 28 long s3 = 0; 29 long long s4 = 0; 30 short s5 = 0; 31 32 double d1 = 0; 33 float d2 = 0; 34 35 double v1 = 0.0; 36 float v2 = 0.0; 37 38 int x1 = (0); 39 unsigned x2 = (0); 40 long x3 = (0); 41 long long x4 = (0); 42 short x5 = (0); 43 44 double z1 = (0); 45 float z2 = (0); 46 47 double t1 = (0.0); 48 float t2 = (0.0); 49 50 int* r1 = NULL; 51 int** r2 = NULL; 52 int*** r3 = NULL; 53 int**** r4 = NULL; 54 int***** r5 = NULL; 55 int****** r6 = NULL; 56 57 // function 58 f(42); 59 60 // array 61 float arr[500]; 62 63 // simplificator 64 char* ss = "words"; 65 int cc = (unsigned char)*ss++; 66 }