Duncan Sands | 71a39f4 | 2010-11-25 21:39:17 +0000 | [diff] [blame] | 1 | // RUN: %llvmgxx %s -S -o - | not grep eprintf1 |
2 | // RUN: %llvmgxx %s -S -o - | grep eprintf | ||||
Chris Lattner | 8667c76 | 2007-03-28 00:03:10 +0000 | [diff] [blame] | 3 | |
4 | // Only one eprintf should exist in the output | ||||
5 | |||||
6 | extern "C" | ||||
7 | void __eprintf(); | ||||
8 | |||||
9 | void foo() { | ||||
10 | |||||
11 | __eprintf(); | ||||
12 | } | ||||
13 | |||||
14 | void *bar() { | ||||
15 | extern void *__eprintf; | ||||
16 | return &__eprintf; | ||||
17 | } |