summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/function-type-qual.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/function-type-qual.cpp')
-rw-r--r--test/SemaCXX/function-type-qual.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/SemaCXX/function-type-qual.cpp b/test/SemaCXX/function-type-qual.cpp
index ccb5747..613ac9b 100644
--- a/test/SemaCXX/function-type-qual.cpp
+++ b/test/SemaCXX/function-type-qual.cpp
@@ -29,3 +29,11 @@ cfn C::*mpg;
// Don't crash!
void (PR14171)() const; // expected-error {{non-member function cannot have 'const' qualifier}}
+
+// Test template instantiation of decayed array types. Not really related to
+// type quals.
+template <typename T> void arrayDecay(const T a[]) { }
+void instantiateArrayDecay() {
+ int a[1];
+ arrayDecay(a);
+}
OpenPOWER on IntegriCloud