aboutsummaryrefslogtreecommitdiffstats
path: root/tests/qhash-with-char-pointer-key/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qhash-with-char-pointer-key/main.cpp')
-rw-r--r--tests/qhash-with-char-pointer-key/main.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/qhash-with-char-pointer-key/main.cpp b/tests/qhash-with-char-pointer-key/main.cpp
new file mode 100644
index 00000000..47a5a5c7
--- /dev/null
+++ b/tests/qhash-with-char-pointer-key/main.cpp
@@ -0,0 +1,12 @@
+#include <QtCore/QHash>
+#include <QtCore/QString>
+
+void test()
+{
+ QHash<const char*, int> hash1; // Warn
+ QHash<char, int> hash2;
+ QHash<char**, int> hash3;
+ QHash<int, int> hash4;
+ QHash<char32_t, int> hash5;
+ QHash<const char32_t*, int> hash6;
+}