]> git.ozlabs.org Git - ccan/blobdiff - tools/configurator/configurator.c
opt: fix up outdated comments in documentation.
[ccan] / tools / configurator / configurator.c
index d46a147ada14e3c8b16f53bb354be47a4491d229..a8c5c8d49bf98ab6d159a0cf6d1c82dd47c9e5a6 100644 (file)
@@ -89,6 +89,12 @@ static struct test tests[] = {
          "static int __attribute__((unused)) func(int x) { return x; }" },
        { "HAVE_ATTRIBUTE_USED", OUTSIDE_MAIN, NULL,
          "static int __attribute__((used)) func(int x) { return x; }" },
+       { "HAVE_BACKTRACE", DEFINES_FUNC, NULL,
+         "#include <execinfo.h>\n"
+         "static int func(int x) {"
+         "     void *bt[10];\n"
+         "     return backtrace(bt, 10) < x;\n"
+         "}" },
        { "HAVE_BIG_ENDIAN", INSIDE_MAIN|EXECUTE, NULL,
          "union { int i; char c[sizeof(int)]; } u;\n"
          "u.i = 0x01020304;\n"