Fix a bot failure from r343042.
authorErik Pilkington <erik.pilkington@gmail.com>
Tue, 25 Sep 2018 23:52:29 +0000 (23:52 +0000)
committerErik Pilkington <erik.pilkington@gmail.com>
Tue, 25 Sep 2018 23:52:29 +0000 (23:52 +0000)
llvm-svn: 343050

clang/test/Sema/warn-duplicate-enum.c

index 4536d0a..4d51d05 100644 (file)
@@ -1,5 +1,5 @@
 // RUN: %clang_cc1 %s -fsyntax-only -verify -Wduplicate-enum
-// RUN: %clang_cc1 %s -x c++ -DCPP -fsyntax-only -verify -Wduplicate-enum
+// RUN: %clang_cc1 -triple x86_64-apple-darwin %s -x c++ -DCPP -fsyntax-only -verify -Wduplicate-enum
 enum A {
   A1 = 0,  // expected-note {{element 'A1' also has value 0}}
   A2 = -1,
@@ -104,6 +104,6 @@ enum enum2 {
 #ifdef CPP
 enum BigEnumerators : long {
   e1,
-  e2 = 9223372036854775807L,
+  e2 = __LONG_MAX__,
 };
 #endif