summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/atomic-type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/atomic-type.cpp')
-rw-r--r--test/SemaCXX/atomic-type.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/SemaCXX/atomic-type.cpp b/test/SemaCXX/atomic-type.cpp
index ae18eab..779b067 100644
--- a/test/SemaCXX/atomic-type.cpp
+++ b/test/SemaCXX/atomic-type.cpp
@@ -83,3 +83,7 @@ namespace copy_init {
// allows extraneous braces around initializers.
Y y3 = { { X(0) }, { 4 } }; // expected-error 2{{illegal initializer type}}
}
+
+bool PR21836(_Atomic(int) *x) {
+ return *x;
+}
OpenPOWER on IntegriCloud