projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc8d7d2
)
[libc++] Make ext-int.verify.cpp test compatible with c++03
author
John Brawn
<john.brawn@arm.com>
Thu, 3 Sep 2020 17:11:29 +0000
(18:11 +0100)
committer
John 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
patch
|
blob
|
history
diff --git
a/libcxx/test/libcxx/atomics/ext-int.verify.cpp
b/libcxx/test/libcxx/atomics/ext-int.verify.cpp
index
7cedcf1
..
1892293
100644
(file)
--- a/
libcxx/test/libcxx/atomics/ext-int.verify.cpp
+++ b/
libcxx/test/libcxx/atomics/ext-int.verify.cpp
@@
-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;
}