From 3e157dc4191632b07607be94da6851e959118f82 Mon Sep 17 00:00:00 2001 From: Daniel Donenfeld Date: Tue, 12 Feb 2019 20:00:52 -0800 Subject: [PATCH] Change test function to check that asm is updated --- tests/span_compile_only.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/span_compile_only.cpp b/tests/span_compile_only.cpp index f8a77f7..5c9da6d 100644 --- a/tests/span_compile_only.cpp +++ b/tests/span_compile_only.cpp @@ -48,6 +48,9 @@ bool foo() span cs; ret = ret || (cs.size() == 0 && cs.data() == nullptr); + span s2{}; + ret = ret || (s2.size() == 0 && s2.data() == nullptr); + return ret; } }