ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change
on this file since 7799f79 was
ae3db00,
checked in by Dmitry Kobets <dkobets@…>, 5 years ago
|
Add support for unsigned integer vectors + tests
|
-
Property mode set to
100644
|
File size:
299 bytes
|
Line | |
---|
1 | #include "../../libcfa/src/vec/vec2.hfa" |
---|
2 | #include <fstream.hfa> |
---|
3 | #include <limits.hfa> |
---|
4 | |
---|
5 | int main(void) { |
---|
6 | vec2(unsigned) v1 = {(unsigned)MAX,(unsigned)MIN}; |
---|
7 | sout | "ctor(x,y):" | v1; |
---|
8 | |
---|
9 | vec2(unsigned) v2 = {3, 4}; |
---|
10 | vec2(unsigned) v3 = {100, 13}; |
---|
11 | sout | "dot(v2,v3):" | dot(v2, v3); |
---|
12 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.