diff options
-rw-r--r-- | regress/usr.bin/xlint/test-19.c | 497 | ||||
-rw-r--r-- | regress/usr.bin/xlint/test-19.c.exp | 179 |
2 files changed, 676 insertions, 0 deletions
diff --git a/regress/usr.bin/xlint/test-19.c b/regress/usr.bin/xlint/test-19.c new file mode 100644 index 00000000000..acc6dd50fac --- /dev/null +++ b/regress/usr.bin/xlint/test-19.c @@ -0,0 +1,497 @@ + /* $OpenBSD: test-19.c,v 1.1 2006/04/25 01:31:15 cloder Exp $ */ + +/* + * Placed in the public domain by Chad Loder <cloder@openbsd.org>. + * + * Test lint dealing with type conversions. + */ +#include <limits.h> + +void c1 (char c){ c++; } +void uc1 (unsigned char uc) { uc++; } +void s1 (short s) { s++; } +void us1 (unsigned short us) { us++; } +void i1 (int i) { i++; } +void ui1 (unsigned int ui) { ui++; } +void f1 (float f) { f++; } +void l1 (long l) { l++; } +void ul1 (unsigned long ul) { ul++; } +void d1 (double d) { d++; } +void ll1 (long long ll) { ll++; } +void ull1 (unsigned long long ull) { ull++; } +void ld1 (long double ld) { ld++; } + +/* ARGSUSED */ +int +main(int argc, char* argv[]) +{ + char C = 1; + unsigned char UC = 1; + short S = 1; + unsigned short US = 1; + int I = 1; + unsigned int UI = 1; + long L = 1; + unsigned long UL = 1; + long long LL = 1; + unsigned long long ULL = 1; + float F = 1.0f; + double D = 1.0; + long double LD = 1.0L; + + /* test with variables */ + c1(C); + c1(UC); + c1(S); + c1(US); + c1(I); + c1(UI); + c1(L); + c1(UL); + c1(LL); + c1(ULL); + c1(F); + c1(D); + c1(LD); + + uc1(C); + uc1(UC); + uc1(S); + uc1(US); + uc1(I); + uc1(UI); + uc1(L); + uc1(UL); + uc1(LL); + uc1(ULL); + uc1(F); + uc1(D); + uc1(LD); + + s1(C); + s1(UC); + s1(S); + s1(US); + s1(I); + s1(UI); + s1(L); + s1(UL); + s1(LL); + s1(ULL); + s1(F); + s1(D); + s1(LD); + + us1(C); + us1(UC); + us1(S); + us1(US); + us1(I); + us1(UI); + us1(L); + us1(UL); + us1(LL); + us1(ULL); + us1(F); + us1(D); + us1(LD); + + i1(C); + i1(UC); + i1(S); + i1(US); + i1(I); + i1(UI); + i1(L); + i1(UL); + i1(LL); + i1(ULL); + i1(F); + i1(D); + i1(LD); + + ui1(C); + ui1(UC); + ui1(S); + ui1(US); + ui1(I); + ui1(UI); + ui1(L); + ui1(UL); + ui1(LL); + ui1(ULL); + ui1(F); + ui1(D); + ui1(LD); + + f1(C); + f1(UC); + f1(S); + f1(US); + f1(I); + f1(UI); + f1(L); + f1(UL); + f1(LL); + f1(ULL); + f1(F); + f1(D); + f1(LD); + + l1(C); + l1(UC); + l1(S); + l1(US); + l1(I); + l1(UI); + l1(L); + l1(UL); + l1(LL); + l1(ULL); + l1(F); + l1(D); + l1(LD); + + ul1(C); + ul1(UC); + ul1(S); + ul1(US); + ul1(I); + ul1(UI); + ul1(L); + ul1(UL); + ul1(LL); + ul1(ULL); + ul1(F); + ul1(D); + ul1(LD); + + d1(C); + d1(UC); + d1(S); + d1(US); + d1(I); + d1(UI); + d1(L); + d1(UL); + d1(LL); + d1(ULL); + d1(F); + d1(D); + d1(LD); + + ll1(C); + ll1(UC); + ll1(S); + ll1(US); + ll1(I); + ll1(UI); + ll1(L); + ll1(UL); + ll1(LL); + ll1(ULL); + ll1(F); + ll1(D); + ll1(LD); + + ull1(C); + ull1(UC); + ull1(S); + ull1(US); + ull1(I); + ull1(UI); + ull1(L); + ull1(UL); + ull1(LL); + ull1(ULL); + ull1(F); + ull1(D); + ull1(LD); + + ld1(C); + ld1(UC); + ld1(S); + ld1(US); + ld1(I); + ld1(UI); + ld1(L); + ld1(UL); + ld1(LL); + ld1(ULL); + ld1(F); + ld1(D); + ld1(LD); + + + c1(-1); + c1(0); + c1(1); + + uc1(-1); + uc1(0); + uc1(1); + + s1(-1); + s1(0); + s1(1); + + us1(-1); + us1(0); + us1(1); + + i1(-1); + i1(0); + i1(1); + + ui1(-1); + ui1(0); + ui1(1); + + f1(-1); + f1(0); + f1(1); + + l1(-1); + l1(0); + l1(1); + + ul1(-1); + ul1(0); + ul1(1); + + d1(-1); + d1(0); + d1(1); + + ll1(-1); + ll1(0); + ll1(1); + + ull1(-1); + ull1(0); + ull1(1); + + ld1(-1); + ld1(0); + ld1(1); + + /* now test with long constants */ + c1(-1L); + c1(0L); + c1(1L); + + uc1(-1L); + uc1(0L); + uc1(1L); + + s1(-1L); + s1(0L); + s1(1L); + + us1(-1L); + us1(0L); + us1(1L); + + i1(-1L); + i1(0L); + i1(1L); + + ui1(-1L); + ui1(0L); + ui1(1L); + + f1(-1L); + f1(0L); + f1(1L); + + l1(-1L); + l1(0L); + l1(1L); + + ul1(-1L); + ul1(0L); + ul1(1L); + + d1(-1L); + d1(0L); + d1(1L); + + ll1(-1L); + ll1(0L); + ll1(1L); + + ull1(-1L); + ull1(0L); + ull1(1L); + + ld1(-1L); + ld1(0L); + ld1(1L); + + /* now test with float constants */ + c1(-1.0f); + c1(0.0f); + c1(1.0f); + + uc1(-1.0f); + uc1(0.0f); + uc1(1.0f); + + s1(-1.0f); + s1(0.0f); + s1(1.0f); + + us1(-1.0f); + us1(0.0f); + us1(1.0f); + + i1(-1.0f); + i1(0.0f); + i1(1.0f); + + ui1(-1.0f); + ui1(0.0f); + ui1(1.0f); + + f1(-1.0f); + f1(0.0f); + f1(1.0f); + + l1(-1.0f); + l1(0.0f); + l1(1.0f); + + ul1(-1.0f); + ul1(0.0f); + ul1(1.0f); + + d1(-1.0f); + d1(0.0f); + d1(1.0f); + + ll1(-1.0f); + ll1(0.0f); + ll1(1.0f); + + ull1(-1.0f); + ull1(0.0f); + ull1(1.0f); + + ld1(-1.0f); + ld1(0.0f); + ld1(1.0f); + + /* now test with double constants */ + c1(-1.0); + c1(0.0); + c1(1.0); + + uc1(-1.0); + uc1(0.0); + uc1(1.0); + + s1(-1.0); + s1(0.0); + s1(1.0); + + us1(-1.0); + us1(0.0); + us1(1.0); + + i1(-1.0); + i1(0.0); + i1(1.0); + + ui1(-1.0); + ui1(0.0); + ui1(1.0); + + f1(-1.0); + f1(0.0); + f1(1.0); + + l1(-1.0); + l1(0.0); + l1(1.0); + + ul1(-1.0); + ul1(0.0); + ul1(1.0); + + d1(-1.0); + d1(0.0); + d1(1.0); + + ll1(-1.0); + ll1(0.0); + ll1(1.0); + + ull1(-1.0); + ull1(0.0); + ull1(1.0); + + ld1(-1.0); + ld1(0.0); + ld1(1.0); + + /* now test with long double constants */ + c1(-1.0L); + c1(0.0L); + c1(1.0L); + + uc1(-1.0L); + uc1(0.0L); + uc1(1.0L); + + s1(-1.0L); + s1(0.0L); + s1(1.0L); + + us1(-1.0L); + us1(0.0L); + us1(1.0L); + + i1(-1.0L); + i1(0.0L); + i1(1.0L); + + ui1(-1.0L); + ui1(0.0L); + ui1(1.0L); + + f1(-1.0L); + f1(0.0L); + f1(1.0L); + + l1(-1.0L); + l1(0.0L); + l1(1.0L); + + ul1(-1.0L); + ul1(0.0L); + ul1(1.0L); + + d1(-1.0L); + d1(0.0L); + d1(1.0L); + + ll1(-1.0L); + ll1(0.0L); + ll1(1.0L); + + ull1(-1.0L); + ull1(0.0L); + ull1(1.0L); + + ld1(-1.0L); + ld1(0.0L); + ld1(1.0L); + + + return 0; +} + + + + + diff --git a/regress/usr.bin/xlint/test-19.c.exp b/regress/usr.bin/xlint/test-19.c.exp new file mode 100644 index 00000000000..5744555525b --- /dev/null +++ b/regress/usr.bin/xlint/test-19.c.exp @@ -0,0 +1,179 @@ +test-19.c:44: warning: c1 arg #1: conversion from 'unsigned char' to 'char' may lose accuracy +test-19.c:45: warning: c1 arg #1: conversion from 'short' to 'char' may lose accuracy +test-19.c:46: warning: c1 arg #1: conversion from 'unsigned short' to 'char' may lose accuracy +test-19.c:47: warning: c1 arg #1: conversion from 'int' to 'char' may lose accuracy +test-19.c:48: warning: c1 arg #1: conversion from 'unsigned int' to 'char' may lose accuracy +test-19.c:49: warning: c1 arg #1: conversion from 'long' to 'char' may lose accuracy +test-19.c:50: warning: c1 arg #1: conversion from 'unsigned long' to 'char' may lose accuracy +test-19.c:51: warning: c1 arg #1: conversion from 'long long' to 'char' may lose accuracy +test-19.c:52: warning: c1 arg #1: conversion from 'unsigned long long' to 'char' may lose accuracy +test-19.c:57: warning: uc1 arg #1: conversion from 'char' to 'unsigned char' may lose accuracy +test-19.c:59: warning: uc1 arg #1: conversion from 'short' to 'unsigned char' may lose accuracy +test-19.c:60: warning: uc1 arg #1: conversion from 'unsigned short' to 'unsigned char' may lose accuracy +test-19.c:61: warning: uc1 arg #1: conversion from 'int' to 'unsigned char' may lose accuracy +test-19.c:62: warning: uc1 arg #1: conversion from 'unsigned int' to 'unsigned char' may lose accuracy +test-19.c:63: warning: uc1 arg #1: conversion from 'long' to 'unsigned char' may lose accuracy +test-19.c:64: warning: uc1 arg #1: conversion from 'unsigned long' to 'unsigned char' may lose accuracy +test-19.c:65: warning: uc1 arg #1: conversion from 'long long' to 'unsigned char' may lose accuracy +test-19.c:66: warning: uc1 arg #1: conversion from 'unsigned long long' to 'unsigned char' may lose accuracy +test-19.c:74: warning: s1 arg #1: conversion from 'unsigned short' to 'short' may lose accuracy +test-19.c:75: warning: s1 arg #1: conversion from 'int' to 'short' may lose accuracy +test-19.c:76: warning: s1 arg #1: conversion from 'unsigned int' to 'short' may lose accuracy +test-19.c:77: warning: s1 arg #1: conversion from 'long' to 'short' may lose accuracy +test-19.c:78: warning: s1 arg #1: conversion from 'unsigned long' to 'short' may lose accuracy +test-19.c:79: warning: s1 arg #1: conversion from 'long long' to 'short' may lose accuracy +test-19.c:80: warning: s1 arg #1: conversion from 'unsigned long long' to 'short' may lose accuracy +test-19.c:87: warning: us1 arg #1: conversion from 'short' to 'unsigned short' may lose accuracy +test-19.c:89: warning: us1 arg #1: conversion from 'int' to 'unsigned short' may lose accuracy +test-19.c:90: warning: us1 arg #1: conversion from 'unsigned int' to 'unsigned short' may lose accuracy +test-19.c:91: warning: us1 arg #1: conversion from 'long' to 'unsigned short' may lose accuracy +test-19.c:92: warning: us1 arg #1: conversion from 'unsigned long' to 'unsigned short' may lose accuracy +test-19.c:93: warning: us1 arg #1: conversion from 'long long' to 'unsigned short' may lose accuracy +test-19.c:94: warning: us1 arg #1: conversion from 'unsigned long long' to 'unsigned short' may lose accuracy +test-19.c:104: warning: i1 arg #1: converted from 'unsigned int' to 'int' +test-19.c:104: warning: i1 arg #1: conversion from 'unsigned int' to 'int' may lose accuracy +test-19.c:105: warning: i1 arg #1: converted from 'long' to 'int' +test-19.c:105: warning: i1 arg #1: conversion from 'long' to 'int' may lose accuracy +test-19.c:106: warning: i1 arg #1: converted from 'unsigned long' to 'int' +test-19.c:106: warning: i1 arg #1: conversion from 'unsigned long' to 'int' may lose accuracy +test-19.c:107: warning: i1 arg #1: converted from 'long long' to 'int' +test-19.c:107: warning: i1 arg #1: conversion from 'long long' to 'int' may lose accuracy +test-19.c:108: warning: i1 arg #1: converted from 'unsigned long long' to 'int' +test-19.c:108: warning: i1 arg #1: conversion from 'unsigned long long' to 'int' may lose accuracy +test-19.c:109: warning: i1 arg #1: converted from 'float' to 'int' +test-19.c:110: warning: i1 arg #1: converted from 'double' to 'int' +test-19.c:111: warning: i1 arg #1: converted from 'long double' to 'int' +test-19.c:113: warning: ui1 arg #1: converted from 'char' to 'unsigned int' +test-19.c:114: warning: ui1 arg #1: converted from 'unsigned char' to 'unsigned int' +test-19.c:115: warning: ui1 arg #1: converted from 'short' to 'unsigned int' +test-19.c:116: warning: ui1 arg #1: converted from 'unsigned short' to 'unsigned int' +test-19.c:117: warning: ui1 arg #1: converted from 'int' to 'unsigned int' +test-19.c:117: warning: ui1 arg #1: conversion from 'int' to 'unsigned int' may lose accuracy +test-19.c:119: warning: ui1 arg #1: converted from 'long' to 'unsigned int' +test-19.c:119: warning: ui1 arg #1: conversion from 'long' to 'unsigned int' may lose accuracy +test-19.c:120: warning: ui1 arg #1: converted from 'unsigned long' to 'unsigned int' +test-19.c:120: warning: ui1 arg #1: conversion from 'unsigned long' to 'unsigned int' may lose accuracy +test-19.c:121: warning: ui1 arg #1: converted from 'long long' to 'unsigned int' +test-19.c:121: warning: ui1 arg #1: conversion from 'long long' to 'unsigned int' may lose accuracy +test-19.c:122: warning: ui1 arg #1: converted from 'unsigned long long' to 'unsigned int' +test-19.c:122: warning: ui1 arg #1: conversion from 'unsigned long long' to 'unsigned int' may lose accuracy +test-19.c:123: warning: ui1 arg #1: converted from 'float' to 'unsigned int' +test-19.c:124: warning: ui1 arg #1: converted from 'double' to 'unsigned int' +test-19.c:125: warning: ui1 arg #1: converted from 'long double' to 'unsigned int' +test-19.c:127: warning: f1 arg #1: converted from 'char' to 'float' +test-19.c:128: warning: f1 arg #1: converted from 'unsigned char' to 'float' +test-19.c:129: warning: f1 arg #1: converted from 'short' to 'float' +test-19.c:130: warning: f1 arg #1: converted from 'unsigned short' to 'float' +test-19.c:131: warning: f1 arg #1: converted from 'int' to 'float' +test-19.c:132: warning: f1 arg #1: converted from 'unsigned int' to 'float' +test-19.c:133: warning: f1 arg #1: converted from 'long' to 'float' +test-19.c:134: warning: f1 arg #1: converted from 'unsigned long' to 'float' +test-19.c:135: warning: f1 arg #1: converted from 'long long' to 'float' +test-19.c:136: warning: f1 arg #1: converted from 'unsigned long long' to 'float' +test-19.c:138: warning: f1 arg #1: converted from 'double' to 'float' +test-19.c:139: warning: f1 arg #1: converted from 'long double' to 'float' +test-19.c:141: warning: l1 arg #1: converted from 'char' to 'long' +test-19.c:142: warning: l1 arg #1: converted from 'unsigned char' to 'long' +test-19.c:143: warning: l1 arg #1: converted from 'short' to 'long' +test-19.c:144: warning: l1 arg #1: converted from 'unsigned short' to 'long' +test-19.c:145: warning: l1 arg #1: converted from 'int' to 'long' +test-19.c:146: warning: l1 arg #1: converted from 'unsigned int' to 'long' +test-19.c:148: warning: l1 arg #1: converted from 'unsigned long' to 'long' +test-19.c:148: warning: l1 arg #1: conversion from 'unsigned long' to 'long' may lose accuracy +test-19.c:149: warning: l1 arg #1: converted from 'long long' to 'long' +test-19.c:149: warning: l1 arg #1: conversion from 'long long' to 'long' may lose accuracy +test-19.c:150: warning: l1 arg #1: converted from 'unsigned long long' to 'long' +test-19.c:150: warning: l1 arg #1: conversion from 'unsigned long long' to 'long' may lose accuracy +test-19.c:151: warning: l1 arg #1: converted from 'float' to 'long' +test-19.c:152: warning: l1 arg #1: converted from 'double' to 'long' +test-19.c:153: warning: l1 arg #1: converted from 'long double' to 'long' +test-19.c:155: warning: ul1 arg #1: converted from 'char' to 'unsigned long' +test-19.c:156: warning: ul1 arg #1: converted from 'unsigned char' to 'unsigned long' +test-19.c:157: warning: ul1 arg #1: converted from 'short' to 'unsigned long' +test-19.c:158: warning: ul1 arg #1: converted from 'unsigned short' to 'unsigned long' +test-19.c:159: warning: ul1 arg #1: converted from 'int' to 'unsigned long' +test-19.c:160: warning: ul1 arg #1: converted from 'unsigned int' to 'unsigned long' +test-19.c:161: warning: ul1 arg #1: converted from 'long' to 'unsigned long' +test-19.c:161: warning: ul1 arg #1: conversion from 'long' to 'unsigned long' may lose accuracy +test-19.c:163: warning: ul1 arg #1: converted from 'long long' to 'unsigned long' +test-19.c:163: warning: ul1 arg #1: conversion from 'long long' to 'unsigned long' may lose accuracy +test-19.c:164: warning: ul1 arg #1: converted from 'unsigned long long' to 'unsigned long' +test-19.c:164: warning: ul1 arg #1: conversion from 'unsigned long long' to 'unsigned long' may lose accuracy +test-19.c:165: warning: ul1 arg #1: converted from 'float' to 'unsigned long' +test-19.c:166: warning: ul1 arg #1: converted from 'double' to 'unsigned long' +test-19.c:167: warning: ul1 arg #1: converted from 'long double' to 'unsigned long' +test-19.c:169: warning: d1 arg #1: converted from 'char' to 'double' +test-19.c:170: warning: d1 arg #1: converted from 'unsigned char' to 'double' +test-19.c:171: warning: d1 arg #1: converted from 'short' to 'double' +test-19.c:172: warning: d1 arg #1: converted from 'unsigned short' to 'double' +test-19.c:173: warning: d1 arg #1: converted from 'int' to 'double' +test-19.c:174: warning: d1 arg #1: converted from 'unsigned int' to 'double' +test-19.c:175: warning: d1 arg #1: converted from 'long' to 'double' +test-19.c:176: warning: d1 arg #1: converted from 'unsigned long' to 'double' +test-19.c:177: warning: d1 arg #1: converted from 'long long' to 'double' +test-19.c:178: warning: d1 arg #1: converted from 'unsigned long long' to 'double' +test-19.c:181: warning: d1 arg #1: converted from 'long double' to 'double' +test-19.c:183: warning: ll1 arg #1: converted from 'char' to 'long long' +test-19.c:184: warning: ll1 arg #1: converted from 'unsigned char' to 'long long' +test-19.c:185: warning: ll1 arg #1: converted from 'short' to 'long long' +test-19.c:186: warning: ll1 arg #1: converted from 'unsigned short' to 'long long' +test-19.c:187: warning: ll1 arg #1: converted from 'int' to 'long long' +test-19.c:188: warning: ll1 arg #1: converted from 'unsigned int' to 'long long' +test-19.c:189: warning: ll1 arg #1: converted from 'long' to 'long long' +test-19.c:190: warning: ll1 arg #1: converted from 'unsigned long' to 'long long' +test-19.c:192: warning: ll1 arg #1: converted from 'unsigned long long' to 'long long' +test-19.c:192: warning: ll1 arg #1: conversion from 'unsigned long long' to 'long long' may lose accuracy +test-19.c:193: warning: ll1 arg #1: converted from 'float' to 'long long' +test-19.c:194: warning: ll1 arg #1: converted from 'double' to 'long long' +test-19.c:195: warning: ll1 arg #1: converted from 'long double' to 'long long' +test-19.c:197: warning: ull1 arg #1: converted from 'char' to 'unsigned long long' +test-19.c:198: warning: ull1 arg #1: converted from 'unsigned char' to 'unsigned long long' +test-19.c:199: warning: ull1 arg #1: converted from 'short' to 'unsigned long long' +test-19.c:200: warning: ull1 arg #1: converted from 'unsigned short' to 'unsigned long long' +test-19.c:201: warning: ull1 arg #1: converted from 'int' to 'unsigned long long' +test-19.c:202: warning: ull1 arg #1: converted from 'unsigned int' to 'unsigned long long' +test-19.c:203: warning: ull1 arg #1: converted from 'long' to 'unsigned long long' +test-19.c:204: warning: ull1 arg #1: converted from 'unsigned long' to 'unsigned long long' +test-19.c:205: warning: ull1 arg #1: converted from 'long long' to 'unsigned long long' +test-19.c:205: warning: ull1 arg #1: conversion from 'long long' to 'unsigned long long' may lose accuracy +test-19.c:207: warning: ull1 arg #1: converted from 'float' to 'unsigned long long' +test-19.c:208: warning: ull1 arg #1: converted from 'double' to 'unsigned long long' +test-19.c:209: warning: ull1 arg #1: converted from 'long double' to 'unsigned long long' +test-19.c:211: warning: ld1 arg #1: converted from 'char' to 'long double' +test-19.c:212: warning: ld1 arg #1: converted from 'unsigned char' to 'long double' +test-19.c:213: warning: ld1 arg #1: converted from 'short' to 'long double' +test-19.c:214: warning: ld1 arg #1: converted from 'unsigned short' to 'long double' +test-19.c:215: warning: ld1 arg #1: converted from 'int' to 'long double' +test-19.c:216: warning: ld1 arg #1: converted from 'unsigned int' to 'long double' +test-19.c:217: warning: ld1 arg #1: converted from 'long' to 'long double' +test-19.c:218: warning: ld1 arg #1: converted from 'unsigned long' to 'long double' +test-19.c:219: warning: ld1 arg #1: converted from 'long long' to 'long double' +test-19.c:220: warning: ld1 arg #1: converted from 'unsigned long long' to 'long double' +test-19.c:221: warning: ld1 arg #1: converted from 'float' to 'long double' +test-19.c:222: warning: ld1 arg #1: converted from 'double' to 'long double' +test-19.c:230: warning: uc1 arg #1: conversion of negative constant to unsigned type +test-19.c:238: warning: us1 arg #1: conversion of negative constant to unsigned type +test-19.c:246: warning: ui1 arg #1: conversion of negative constant to unsigned type +test-19.c:258: warning: ul1 arg #1: conversion of negative constant to unsigned type +test-19.c:270: warning: ull1 arg #1: conversion of negative constant to unsigned type +test-19.c:283: warning: uc1 arg #1: conversion of negative constant to unsigned type +test-19.c:291: warning: us1 arg #1: conversion of negative constant to unsigned type +test-19.c:299: warning: ui1 arg #1: conversion of negative constant to unsigned type +test-19.c:311: warning: ul1 arg #1: conversion of negative constant to unsigned type +test-19.c:323: warning: ull1 arg #1: conversion of negative constant to unsigned type +test-19.c:336: warning: uc1 arg #1: conversion of 'float' to 'unsigned char' is out of range +test-19.c:344: warning: us1 arg #1: conversion of 'float' to 'unsigned short' is out of range +test-19.c:352: warning: ui1 arg #1: conversion of 'float' to 'unsigned int' is out of range +test-19.c:364: warning: ul1 arg #1: conversion of 'float' to 'unsigned long' is out of range +test-19.c:376: warning: ull1 arg #1: conversion of 'float' to 'unsigned long long' is out of range +test-19.c:389: warning: uc1 arg #1: conversion of 'double' to 'unsigned char' is out of range +test-19.c:397: warning: us1 arg #1: conversion of 'double' to 'unsigned short' is out of range +test-19.c:405: warning: ui1 arg #1: conversion of 'double' to 'unsigned int' is out of range +test-19.c:417: warning: ul1 arg #1: conversion of 'double' to 'unsigned long' is out of range +test-19.c:429: warning: ull1 arg #1: conversion of 'double' to 'unsigned long long' is out of range +test-19.c:442: warning: uc1 arg #1: conversion of 'long double' to 'unsigned char' is out of range +test-19.c:450: warning: us1 arg #1: conversion of 'long double' to 'unsigned short' is out of range +test-19.c:458: warning: ui1 arg #1: conversion of 'long double' to 'unsigned int' is out of range +test-19.c:470: warning: ul1 arg #1: conversion of 'long double' to 'unsigned long' is out of range +test-19.c:482: warning: ull1 arg #1: conversion of 'long double' to 'unsigned long long' is out of range +Lint pass2: |