Add a test for this too.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153616
91177308-0d34-0410-b5e6-
96231b3b80d8
if (Opts.CPlusPlus)
Builder.defineMacro("_GNU_SOURCE");
+ Builder.defineMacro("__LITTLE_ENDIAN__");
Builder.defineMacro("__native_client__");
getArchDefines(Opts, Builder);
}
// CHECK: @align_vl = global i32 4
int align_vl = __alignof(va_list);
+// CHECK: __LITTLE_ENDIAN__defined
+#ifdef __LITTLE_ENDIAN__
+void __LITTLE_ENDIAN__defined() {}
+#endif
+
// CHECK: __native_client__defined
#ifdef __native_client__
void __native_client__defined() {}