diff options
Diffstat (limited to 'clang/test/Sema/callingconv.c')
| -rw-r--r-- | clang/test/Sema/callingconv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Sema/callingconv.c b/clang/test/Sema/callingconv.c index 500c0fbfb27..f9fa9fef2b3 100644 --- a/clang/test/Sema/callingconv.c +++ b/clang/test/Sema/callingconv.c @@ -66,3 +66,5 @@ void __attribute__((intel_ocl_bicc)) inteloclbifunc(float *a) {} typedef void typedef_fun_t(int); typedef_fun_t typedef_fun; // expected-note {{previous declaration is here}} void __attribute__((stdcall)) typedef_fun(int x) { } // expected-error {{function declared 'stdcall' here was previously declared without calling convention}} + +struct type_test {} __attribute__((stdcall)); // expected-warning {{'stdcall' attribute only applies to functions and methods}} |

