diff options
| author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-05-25 15:03:18 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:01:46 -0700 |
| commit | 56ea0d3a62f9aafaa31bd034e938728936810b54 (patch) | |
| tree | 6fa8362421ee0ac0d5fc3ef00acc085c3ef0d8f7 /validation | |
| parent | 93c174b6a74ec82f268c9384ba01058d71f78e23 (diff) | |
| download | sparse-dev-56ea0d3a62f9aafaa31bd034e938728936810b54.tar.gz | |
Add a type conversion validation test. This
verifies that we're doing the proper integer
promotions for normal integer binary operations.
Diffstat (limited to 'validation')
| -rw-r--r-- | validation/typeconvert.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/validation/typeconvert.c b/validation/typeconvert.c new file mode 100644 index 00000000..6e43c76a --- /dev/null +++ b/validation/typeconvert.c @@ -0,0 +1,4 @@ +int add_char(void) +{ + return (char) 127 + (char) 127 + (char) 2; +} |
