cmake/c++11-test-decltype-N2343.cpp

changeset 473
2a84149fe642
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cmake/c++11-test-decltype-N2343.cpp	Thu Aug 22 20:24:16 2013 +0300
@@ -0,0 +1,11 @@
+
+bool check_size(int i)
+{
+	return sizeof(int) == sizeof(decltype(i));
+}
+
+int main()
+{
+	bool ret = check_size(42);
+	return ret ? 0 : 1;
+}

mercurial