repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Handle __declspec() attributes in using
[llvm-project.git]
/
clang
/
test
/
CodeGen
/
2009-06-01-addrofknr.c
blob
905c696721ca72751a8298797279d2bb99389875
1
// RUN: %clang_cc1 %s -o %t -emit-llvm -verify -std=c89
2
// PR4289
3
4
struct
funcptr
{
5
int
(*
func
)();
6
};
7
8
static int
func
(
f
)
// expected-warning {{a function definition without a prototype is deprecated in all versions of C and is not supported in C2x}}
9
void
*
f
;
10
{
11
return
0
;
12
}
13
14
int
15
main
(
int
argc
,
char
*
argv
[])
16
{
17
struct
funcptr fp
;
18
19
fp
.
func
= &
func
;
20
fp
.
func
=
func
;
21
}