summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2013-11-19 04:08:34 +0000
committerAaron Ballman <aaron@aaronballman.com>2013-11-19 04:08:34 +0000
commitb8f67f2de8c25ea9ff628939d7f20da918c0df41 (patch)
treed408add7adc691baac7879158a89d444e9ac9c5c /clang/test/Sema
parent9e40b1b61dcefe3fafd4e68fdbcf53c293bc52f1 (diff)
downloadbcm5719-llvm-b8f67f2de8c25ea9ff628939d7f20da918c0df41.tar.gz
bcm5719-llvm-b8f67f2de8c25ea9ff628939d7f20da918c0df41.zip
Improving calling convention test coverage by adding tests for things not currently handled. Specifically: the diagnostics in SemaDeclAttr.cpp, and ensuring that calling convention attributes are applied to ObjC method declarations. No functional changes.
llvm-svn: 195098
Diffstat (limited to 'clang/test/Sema')
-rw-r--r--clang/test/Sema/callingconv.c2
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}}
OpenPOWER on IntegriCloud