blob: 6ff1284ddb40f4307938d9697564040462fb5999 [file] [log] [blame]
Duncan Sands71a39f42010-11-25 21:39:17 +00001// RUN: %llvmgxx %s -S -o - | not grep eprintf1
2// RUN: %llvmgxx %s -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}