aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/MicrosoftExtensions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/MicrosoftExtensions.cpp')
-rw-r--r--test/Sema/MicrosoftExtensions.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Sema/MicrosoftExtensions.cpp b/test/Sema/MicrosoftExtensions.cpp
new file mode 100644
index 0000000000..fea763e282
--- /dev/null
+++ b/test/Sema/MicrosoftExtensions.cpp
@@ -0,0 +1,13 @@
+// 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);
+}