summaryrefslogtreecommitdiffstats
path: root/clang/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
commitdc5d9759063a4eccacdcaeb2b3ac3e157584e63f (patch)
treef89bf1b46738b9bf06211c1ca735bb68f1729538 /clang/test/Frontend
parentd5d4df98bb9e0c836cb5b229b3f186637cde7673 (diff)
downloadbcm5719-llvm-dc5d9759063a4eccacdcaeb2b3ac3e157584e63f.tar.gz
bcm5719-llvm-dc5d9759063a4eccacdcaeb2b3ac3e157584e63f.zip
Fix and test for assertion error in P41835.
llvm-svn: 360448
Diffstat (limited to 'clang/test/Frontend')
-rw-r--r--clang/test/Frontend/macro_defined_type.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Frontend/macro_defined_type.cpp b/clang/test/Frontend/macro_defined_type.cpp
index 4e60c840382..63495268687 100644
--- a/clang/test/Frontend/macro_defined_type.cpp
+++ b/clang/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}}
+};
OpenPOWER on IntegriCloud