notmuch/test/ghost-report.cc
Daniel Kahn Gillmor bdc87f0d3e test: run uncrustify
This is the result of running:

    $ uncrustify --replace --config ../devel/uncrustify.cfg *.cc *.c *.h

in the test directory.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2019-06-29 21:18:15 +02:00

16 lines
290 B
C++

#include <iostream>
#include <cstdlib>
#include <xapian.h>
int
main (int argc, char **argv)
{
if (argc < 2) {
std::cerr << "usage: ghost-report xapian-dir" << std::endl;
exit (1);
}
Xapian::Database db (argv[1]);
std::cout << db.get_termfreq ("Tghost") << std::endl;
}