diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:18:08 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:18:08 +0000 |
| commit | bab175ec4b075c8076ba14c762900392533f6ee4 (patch) | |
| tree | 01f4f29419a2cb10abe13c1e63cd2a66068b0137 /test/SemaCXX/MicrosoftExtensions.cpp | |
| parent | 8b7a8012d223fac5d17d16a66bb39168a9a1dfc0 (diff) | |
Notes
Diffstat (limited to 'test/SemaCXX/MicrosoftExtensions.cpp')
| -rw-r--r-- | test/SemaCXX/MicrosoftExtensions.cpp | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/test/SemaCXX/MicrosoftExtensions.cpp b/test/SemaCXX/MicrosoftExtensions.cpp index e10deadf7c7f5..e12dea1fb6203 100644 --- a/test/SemaCXX/MicrosoftExtensions.cpp +++ b/test/SemaCXX/MicrosoftExtensions.cpp @@ -158,19 +158,16 @@ void m1() { } - - - -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); +namespace signed_hex_i64 { +void f(long long); // expected-note {{candidate function}} +void f(int); // expected-note {{candidate function}} +void g() { + // This used to be controlled by -fms-extensions, but it is now under + // -fms-compatibility. + f(0xffffffffffffffffLL); // expected-error {{call to 'f' is ambiguous}} f(0xffffffffffffffffi64); } +} // Enumeration types with a fixed underlying type. const int seventeen = 17; |
