1 //===-- ns.cpp ------------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
14 printf("global foo()\n");
19 printf("global func()\n");
24 printf("global func(int)\n");
27 void test_lookup_at_global_scope()
30 printf("at global scope: foo() = %d\n", foo()); // eval foo(), exp: 42
31 printf("at global scope: func() = %d\n", func()); // eval func(), exp: 1