source:
cppstreams/test_literals.cc
@
2
Last change on this file since 2 was 2, checked in by gobi, 13 years ago | |
---|---|
File size: 314 bytes |
Line | |
---|---|
1 | #include "stream.h" |
2 | #include "test_common.h" |
3 | |
4 | // + operator nem megy rajuk |
5 | |
6 | int main() |
7 | { |
8 | #ifdef HAVE_LITERALS |
9 | stream<unsigned long> sx = 42_s; |
10 | stream<long> sy = 42_s; |
11 | compare(sx, {42ul}); |
12 | compare(sy, {42l}); |
13 | #else //HAVE_LITERALS |
14 | std::cout<<"g++ < 4.7"<<std::endl; |
15 | #endif//HAVE_LITERALS |
16 | return 0; |
17 | } |
Note: See TracBrowser
for help on using the repository browser.