about summary refs log tree commit diff homepage
path: root/test/CXX/symex/basic_c++/namespace.cpp
blob: 939e9bcdc958650033b8165462d4014c2db5f1ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// REQUIRES: uclibc
// RUN: %clangxx %s -emit-llvm %O0opt -c -o %t.bc
// RUN: rm -rf %t.klee-out
// RUN: %klee --output-dir=%t.klee-out --libc=uclibc %t.bc 2>&1 | FileCheck %s

#include <cstdio>

namespace test {
int a() {
  return 2;
}
} // namespace test

int main(int argc, char **args) {
  printf("test::a() == %d\n", test::a());
  //CHECK: test::a() == 2
  return 0;
}