blob: ca68af1d57f0c59a1aa184dbb99e2c48e7bd14f9 [file] [log] [blame]
Chris Lattner8667c762007-03-28 00:03:10 +00001// RUN: %llvmgxx %s -emit-llvm -S -o - | not grep 'eprintf1' &&
Chris Lattner87a64282007-04-01 06:19:41 +00002// RUN: %llvmgxx %s -emit-llvm -S -o - | grep 'eprintf'
Chris Lattner8667c762007-03-28 00:03:10 +00003
4// Only one eprintf should exist in the output
5
6extern "C"
7void __eprintf();
8
9void foo() {
10
11 __eprintf();
12}
13
14void *bar() {
15 extern void *__eprintf;
16 return &__eprintf;
17}