init repo.
This commit is contained in:
12
third_party/gflags/test/gflags_declare_test.cc
vendored
Normal file
12
third_party/gflags/test/gflags_declare_test.cc
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
#include <gflags/gflags.h>
|
||||
|
||||
DEFINE_string(message, "", "The message to print");
|
||||
void print_message(); // in gflags_declare_flags.cc
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
GFLAGS_NAMESPACE::SetUsageMessage("Test compilation and use of gflags_declare.h");
|
||||
GFLAGS_NAMESPACE::ParseCommandLineFlags(&argc, &argv, true);
|
||||
print_message();
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user