diff options
author | Oskar <[email protected]> | 2024-08-03 22:51:15 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-08-03 22:51:15 +0200 |
commit | 1d105b91b9678ffaa8eddea2218ed1789f5be27c (patch) | |
tree | 89563fd6bcbe5411b244ac361098fbdddc321f5f /decltype-tests.cpp | |
parent | 0de72ab100011ab54f99f298e936327011ebc706 (diff) |
more assignments
Diffstat (limited to 'decltype-tests.cpp')
-rw-r--r-- | decltype-tests.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/decltype-tests.cpp b/decltype-tests.cpp index d0bf7e2..e18fd0a 100644 --- a/decltype-tests.cpp +++ b/decltype-tests.cpp @@ -19,10 +19,14 @@ int main () { decltype(ii + 0) dtii2 = 102; //int decltype(*iii) dtiii = i; //int& decltype(*iii + 0) dtiii2 = i; //int + decltype(iii) dtiii3 = &i; //int* std::cout << dti << " " // Will print 101 << dtii << " " // Will print 101 << dtii2 << " " // Will print 102 << dtiii << " " // Will print 100 - << dtiii2 << " " << std::endl; // Will print 100 + << dtiii2 << " " // Will print 100 + << dtiii3 << " " // Address if i + << &i << " " // address of i + << std::endl; return 0; } |