[libc++] Make ext-int.verify.cpp test compatible with c++03
authorJohn Brawn <john.brawn@arm.com>
Thu, 3 Sep 2020 17:11:29 +0000 (18:11 +0100)
committerJohn Brawn <john.brawn@arm.com>
Thu, 3 Sep 2020 17:18:19 +0000 (18:18 +0100)
Currently the libcxx/atomics/ext-int.verify.cpp test fails when run with
-std=c++03 because there's an extra error due to using list initialization. Fix
this by using parentheses instead.

libcxx/test/libcxx/atomics/ext-int.verify.cpp

index 7cedcf1..1892293 100644 (file)
@@ -20,7 +20,7 @@
 int main(int, char**)
 {
   // expected-error@atomic:*1 {{_Atomic cannot be applied to integer type '_ExtInt(32)'}}
-  std::atomic<_ExtInt(32)> x {42};
+  std::atomic<_ExtInt(32)> x(42);
 
   return 0;
 }