From 1d105b91b9678ffaa8eddea2218ed1789f5be27c Mon Sep 17 00:00:00 2001 From: Oskar Date: Sat, 3 Aug 2024 22:51:15 +0200 Subject: more assignments --- decltype-tests.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'decltype-tests.cpp') 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; } -- cgit v1.2.3