diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-06-18 21:30:25 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-06-18 21:30:25 +0000 |
| commit | 77e274fbc67d8d030b7a28a0ee44c44918deb9cd (patch) | |
| tree | 56421e85319757716b37980048da584857b4296e /clang/test/CodeGen | |
| parent | 589ffb490279d518589a86bdfc6111bb2867d862 (diff) | |
| download | bcm5719-llvm-77e274fbc67d8d030b7a28a0ee44c44918deb9cd.tar.gz bcm5719-llvm-77e274fbc67d8d030b7a28a0ee44c44918deb9cd.zip | |
Merge the "regparm" attribute from a previous declaration of a
function to redeclarations of that function. Fixes PR7025.
llvm-svn: 106317
Diffstat (limited to 'clang/test/CodeGen')
| -rw-r--r-- | clang/test/CodeGen/regparm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/CodeGen/regparm.c b/clang/test/CodeGen/regparm.c index b60f8c70d76..ec5cbab16a5 100644 --- a/clang/test/CodeGen/regparm.c +++ b/clang/test/CodeGen/regparm.c @@ -14,6 +14,11 @@ FType bar; static void FASTCALL reduced(char b, double c, foo* d, double e, int f); +// PR7025 +void FASTCALL f1(int i, int j, int k); +// CHECK: define void @f1(i32 inreg %i, i32 inreg %j, i32 %k) +void f1(int i, int j, int k) { } + int main(void) { // CHECK: call void @reduced(i8 signext inreg 0, {{.*}} %struct.anon* inreg null |

