+#include <stddef.h>
#include <stdint.h>
template<class X>
return arr->dim;
}
-#if _LP64
-unsigned long testlongmangle(int32_t a, uint32_t b, long c, unsigned long d)
+uint64_t testlongmangle(int a, unsigned int b, int64_t c, uint64_t d)
{
return a + b + c + d;
}
-#else
-unsigned long long testlongmangle(int a, unsigned int b, long long c, unsigned long long d)
+
+unsigned long testCppLongMangle(long a, unsigned long b)
{
- return a + b + c + d;
+ return a + b;
+}
+
+unsigned long long testCppLongLongMangle(long long a, unsigned long long b)
+{
+ return a + b;
+}
+
+size_t testCppSizeTMangle(ptrdiff_t a, size_t b)
+{
+ return a + b;
}
-#endif
int test31[2][2][2] = {1, 1, 1, 1, 1, 1, 1, 1};
int *test32 = 0;
if (s2->value() != otherS2->value())
return 2;
return 0;
-}
\ No newline at end of file
+}
+
+namespace foo
+{
+ namespace bar
+ {
+ namespace baz
+ {
+ int doStuff(int i)
+ {
+ return i * 2;
+ }
+ }
+ }
+}
+
+#ifndef __DMC__ // DMC doesn't support c++11
+template<typename ...T> void foovargs(T... args);
+
+void test40()
+{
+ foovargs<int, float>(1, 2.0f);
+ char c = 'a';
+ foovargs<char*>(&c);
+}
+
+template<typename T, typename ...Args>
+void make_shared_poc(Args&... args);
+
+void test41()
+{
+ int a = 1;
+ int b = 2;
+ make_shared_poc<int, int, int>(a, b);
+
+}
+#endif