Austin Schuh | 1eb16d1 | 2015-09-06 17:21:56 -0700 | [diff] [blame^] | 1 | #include <gflags/gflags.h> |
2 | |||||
3 | DEFINE_string(message, "", "The message to print"); | ||||
4 | void print_message(); // in gflags_declare_flags.cc | ||||
5 | |||||
6 | int main(int argc, char **argv) | ||||
7 | { | ||||
8 | gflags::SetUsageMessage("Test compilation and use of gflags_declare.h"); | ||||
9 | gflags::ParseCommandLineFlags(&argc, &argv, true); | ||||
10 | print_message(); | ||||
11 | return 0; | ||||
12 | } |