summaryrefslogtreecommitdiff
path: root/test/Frontend
diff options
context:
space:
mode:
authorLeonard Chan <leonardchan@google.com>2019-05-10 18:05:15 +0000
committerLeonard Chan <leonardchan@google.com>2019-05-10 18:05:15 +0000
commit5ab2c8ba2bdeca94b6e8990c25596601b4314f20 (patch)
tree5d29dad1f7ac30f1b46cc5c8c6deafc7f65a2d9a /test/Frontend
parent4c51e7e315399168695171f7655a01089c7bb6ac (diff)
downloadclang-5ab2c8ba2bdeca94b6e8990c25596601b4314f20.tar.gz
Fix and test for assertion error in P41835.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360448 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Frontend')
-rw-r--r--test/Frontend/macro_defined_type.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Frontend/macro_defined_type.cpp b/test/Frontend/macro_defined_type.cpp
index 4e60c84038..6349526868 100644
--- a/test/Frontend/macro_defined_type.cpp
+++ b/test/Frontend/macro_defined_type.cpp
@@ -13,3 +13,9 @@ void Func() {
auto NODEREF *auto_i_ptr2 = i_ptr;
auto NODEREF auto_i2 = i; // expected-warning{{'noderef' can only be used on an array or pointer type}}
}
+
+// Added test for fix for P41835
+#define _LIBCPP_FLOAT_ABI __attribute__((pcs("aapcs")))
+struct A {
+ _LIBCPP_FLOAT_ABI int operator()() throw(); // expected-warning{{'pcs' calling convention ignored for this target}}
+};