summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/containers/container.adaptors/queue/queue.defn/emplace.pass.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2018-11-15 00:11:02 +0000
committerEric Fiselier <eric@efcs.ca>2018-11-15 00:11:02 +0000
commit22bdb3310809d8d2055afc262a0aa81c06100447 (patch)
tree7837e098dde33fe94b3c30897bf6191227e2215a /libcxx/test/std/containers/container.adaptors/queue/queue.defn/emplace.pass.cpp
parentddb039a199a520843388327f3e112469be9c4d8f (diff)
downloadbcm5719-llvm-22bdb3310809d8d2055afc262a0aa81c06100447.tar.gz
bcm5719-llvm-22bdb3310809d8d2055afc262a0aa81c06100447.zip
Get tests compiling with -Wunused-local-typedef
llvm-svn: 346914
Diffstat (limited to 'libcxx/test/std/containers/container.adaptors/queue/queue.defn/emplace.pass.cpp')
-rw-r--r--libcxx/test/std/containers/container.adaptors/queue/queue.defn/emplace.pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/std/containers/container.adaptors/queue/queue.defn/emplace.pass.cpp b/libcxx/test/std/containers/container.adaptors/queue/queue.defn/emplace.pass.cpp
index ead9ad0bcdf..25f6bc76e1a 100644
--- a/libcxx/test/std/containers/container.adaptors/queue/queue.defn/emplace.pass.cpp
+++ b/libcxx/test/std/containers/container.adaptors/queue/queue.defn/emplace.pass.cpp
@@ -43,9 +43,9 @@ int main()
test_return_type<std::queue<int> > ();
test_return_type<std::queue<int, std::list<int> > > ();
- typedef Emplaceable T;
std::queue<Emplaceable> q;
#if TEST_STD_VER > 14
+ typedef Emplaceable T;
T& r1 = q.emplace(1, 2.5);
assert(&r1 == &q.back());
T& r2 = q.emplace(2, 3.5);
OpenPOWER on IntegriCloud