From: Francois Pichet Date: Mon, 17 Jan 2011 01:08:01 +0000 (+0000) Subject: Remove a c++ file test I inadvertently added in Sema last week. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5be38be82a6631786624625d010d695d529802a8;p=clang Remove a c++ file test I inadvertently added in Sema last week. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123608 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/MicrosoftExtensions.cpp b/test/Sema/MicrosoftExtensions.cpp deleted file mode 100644 index fea763e282..0000000000 --- a/test/Sema/MicrosoftExtensions.cpp +++ /dev/null @@ -1,13 +0,0 @@ -// RUN: %clang_cc1 %s -fsyntax-only -Wno-unused-value -Wmicrosoft -fms-extensions -verify - - -void f(long long); -void f(int); - -int main() -{ - // This is an ambiguous call in standard C++. - // This calls f(long long) in Microsoft mode because LL is always signed. - f(0xffffffffffffffffLL); - f(0xffffffffffffffffi64); -} diff --git a/test/SemaCXX/MicrosoftExtensions.cpp b/test/SemaCXX/MicrosoftExtensions.cpp index cfb27bcf21..2bcbbcaeb5 100644 --- a/test/SemaCXX/MicrosoftExtensions.cpp +++ b/test/SemaCXX/MicrosoftExtensions.cpp @@ -97,3 +97,15 @@ enum ENUM2 { ENUM2_b = 0x9FFFFFFF, // expected-warning {{enumerator value is not representable in the underlying type 'int'}} ENUM2_c = 0x100000000 // expected-warning {{enumerator value is not representable in the underlying type 'int'}} }; + + +void f(long long); +void f(int); + +int main() +{ + // This is an ambiguous call in standard C++. + // This calls f(long long) in Microsoft mode because LL is always signed. + f(0xffffffffffffffffLL); + f(0xffffffffffffffffi64); +}