diff options
| author | Chris Lattner <sabre@nondot.org> | 2011-07-13 03:59:32 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2011-07-13 03:59:32 +0000 | 
| commit | 3517f14219fc7028a7cde6c283e262200bbc5e95 (patch) | |
| tree | 6b5ab31401b02b1c18e56be3bcc70401df690c2e /clang/test/CodeGen | |
| parent | f47c06916215813705550af2b38bf115831fc675 (diff) | |
| download | bcm5719-llvm-3517f14219fc7028a7cde6c283e262200bbc5e95.tar.gz bcm5719-llvm-3517f14219fc7028a7cde6c283e262200bbc5e95.zip  | |
PR10337 reminds me that calls return values, lets handle them just
like arguments.  Thanks PR10337! :)
llvm-svn: 135030
Diffstat (limited to 'clang/test/CodeGen')
| -rw-r--r-- | clang/test/CodeGen/call.c | 16 | 
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/CodeGen/call.c b/clang/test/CodeGen/call.c index cd8bd519935..ef327751b3a 100644 --- a/clang/test/CodeGen/call.c +++ b/clang/test/CodeGen/call.c @@ -21,3 +21,19 @@ void Interpret() {    // CHECK: call void ({{.*}}, ...)* @JS_ReportErrorNumber({{.*}}@js_GetErrorMessage  } + + + +// PR10337 +struct sigaction { int (*_sa_handler)(int); }; +typedef int SigHandler (); +typedef struct sigaction sighandler_cxt; +SigHandler *rl_set_sighandler(ohandler) +sighandler_cxt *ohandler;  { +  return 0; +} + +void rl_set_signals() { +  SigHandler *oh; +  oh = rl_set_sighandler(0); +}  | 

