diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2012-10-02 14:56:00 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2012-10-02 14:56:00 +0000 |
commit | a99c35702d24b8f1342ca73dce94103eb94f9922 (patch) | |
tree | aaeb9824b9616725748e3e6e65863c54eb4e687a /clang/test | |
parent | e91c6be01e16c403ca0d566c1fbde0a3b080e504 (diff) | |
download | bcm5719-llvm-a99c35702d24b8f1342ca73dce94103eb94f9922.tar.gz bcm5719-llvm-a99c35702d24b8f1342ca73dce94103eb94f9922.zip |
Splitting this test case into two because the behavior for the calling convention code is target-specific.
llvm-svn: 165016
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Sema/MicrosoftCompatibility-x86.c | 6 | ||||
-rw-r--r-- | clang/test/Sema/MicrosoftCompatibility.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/clang/test/Sema/MicrosoftCompatibility-x86.c b/clang/test/Sema/MicrosoftCompatibility-x86.c new file mode 100644 index 00000000000..758f570f13c --- /dev/null +++ b/clang/test/Sema/MicrosoftCompatibility-x86.c @@ -0,0 +1,6 @@ +// RUN: %clang_cc1 %s -fsyntax-only -Wno-unused-value -Wmicrosoft -verify -fms-compatibility -triple i386-pc-win32
+int __stdcall f(void); /* expected-note {{previous declaration is here}} */
+
+int __cdecl f(void) { /* expected-error {{function declared 'cdecl' here was previously declared 'stdcall'}} */
+ return 0;
+}
diff --git a/clang/test/Sema/MicrosoftCompatibility.c b/clang/test/Sema/MicrosoftCompatibility.c index be13949ddd1..6330c156670 100644 --- a/clang/test/Sema/MicrosoftCompatibility.c +++ b/clang/test/Sema/MicrosoftCompatibility.c @@ -19,9 +19,3 @@ __declspec(align(32768)) struct S1 { int a; } s; /* expected-error {{requested a struct __declspec(aligned) S2 {}; /* expected-warning {{unknown __declspec attribute 'aligned' ignored}} */ struct __declspec(appdomain) S3 {}; /* expected-warning {{__declspec attribute 'appdomain' is not supported}} */ - -int __stdcall f(void); /* expected-note {{previous declaration is here}} */ - -int __cdecl f(void) { /* expected-error {{function declared 'cdecl' here was previously declared 'stdcall'}} */ - return 0; -} |