]> granicus.if.org Git - clang/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@343050 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/warn-duplicate-enum.c

index 4536d0aced1f6ecaa0622abea188cf9776821def..4d51d055f5e974d2a0818ac2abbcf52bc566da91 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