summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/input.output
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-04-28 01:49:03 +0000
committerEric Fiselier <eric@efcs.ca>2016-04-28 01:49:03 +0000
commite5eb7049eb45f960dd7927e037a637a175d3f6db (patch)
tree411bac5f89419725ec6adc92d9d6ef7845d08e28 /libcxx/test/std/input.output
parent15643352ebec4e44ec03ab02491986f15acf132a (diff)
downloadbcm5719-llvm-e5eb7049eb45f960dd7927e037a637a175d3f6db.tar.gz
bcm5719-llvm-e5eb7049eb45f960dd7927e037a637a175d3f6db.zip
Guard Clang and GCC specific pragmas. Patch from STL@microsoft.com
llvm-svn: 267836
Diffstat (limited to 'libcxx/test/std/input.output')
-rw-r--r--libcxx/test/std/input.output/file.streams/c.files/cstdio.pass.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/test/std/input.output/file.streams/c.files/cstdio.pass.cpp b/libcxx/test/std/input.output/file.streams/c.files/cstdio.pass.cpp
index a06f0443d70..56beb58c3a3 100644
--- a/libcxx/test/std/input.output/file.streams/c.files/cstdio.pass.cpp
+++ b/libcxx/test/std/input.output/file.streams/c.files/cstdio.pass.cpp
@@ -78,9 +78,11 @@
#include <cstdarg>
+#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wformat-zero-length"
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+#endif
int main()
{
OpenPOWER on IntegriCloud