summaryrefslogtreecommitdiffstats
path: root/libcxx/test/language.support
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2014-11-18 23:46:18 +0000
committerEric Fiselier <eric@efcs.ca>2014-11-18 23:46:18 +0000
commite15f86cb1250e3dd3b102d536bf6a17ba8a18231 (patch)
tree1c0177de35c48af044fc51500e78e492935071d3 /libcxx/test/language.support
parent9c1e4123f8ecb5747448b8311ed66d8d7a207e0b (diff)
downloadbcm5719-llvm-e15f86cb1250e3dd3b102d536bf6a17ba8a18231.tar.gz
bcm5719-llvm-e15f86cb1250e3dd3b102d536bf6a17ba8a18231.zip
Modify tests to check that va_copy is only defined in C++11 and beyond.
llvm-svn: 222282
Diffstat (limited to 'libcxx/test/language.support')
-rw-r--r--libcxx/test/language.support/support.runtime/cstdarg.pass.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/libcxx/test/language.support/support.runtime/cstdarg.pass.cpp b/libcxx/test/language.support/support.runtime/cstdarg.pass.cpp
index 00baf8029c5..c9d00498e69 100644
--- a/libcxx/test/language.support/support.runtime/cstdarg.pass.cpp
+++ b/libcxx/test/language.support/support.runtime/cstdarg.pass.cpp
@@ -15,8 +15,14 @@
#error va_arg not defined
#endif
-#ifndef va_copy
-#error va_copy not defined
+#if __cplusplus >= 201103L
+# ifndef va_copy
+# error va_copy not defined when c++ >= 11
+# endif
+#else
+# ifdef va_copy
+# error va_copy not defined when c++ < 11
+# endif
#endif
#ifndef va_end
OpenPOWER on IntegriCloud