Skip to content

Commit

Permalink
test: forward port cpp test for 4.14.2
Browse files Browse the repository at this point in the history
Signed-off-by: Etienne Marais <dev@maiste.fr>
  • Loading branch information
maiste authored and Leonidas-from-XIV committed Oct 30, 2024
1 parent d84d83a commit ceb742e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/blackbox-tests/test-cases/cpp-std-ocaml5.t/cpp11.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <caml/misc.h>
#include <caml/mlvalues.h>
#include <iostream>
#include <cstring>
#include <caml/misc.h>
#include <caml/mlvalues.h>

// strdup is not part of the C standard library but is part of POSIX.
// By default GCC and Clang both use the GNU variant of the C standard,
Expand Down
2 changes: 1 addition & 1 deletion test/blackbox-tests/test-cases/cpp-std-ocaml5.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
> (flags -std=c++98 :standard)))
> EOF

$ (dune build ./cpp11.exe 2>/dev/null) && _build/default/cpp11.exe
$ dune exec ./cpp11.exe 2>/dev/null
Hi from C++11

0 comments on commit ceb742e

Please sign in to comment.