A new film starring Daniel Radcliffe as a farting corpse with an erection has prompted an audience walk out at its premiere.

The Harry Potter star joins Paul Dano in independent film Swiss Army Man, directed by music video duo Daniel Kwan and Daniel Scheinert.

The movie sees Dano, currently starring in the BBC’s adaption of War and Peace, play Hank, who is stranded on a tiny deserted island.

He befriends a dead body (Radcliffe) which has washed ashore, and eventually rides it out to sea propelled by the stream of farts emanating from the cadaver.

It's fair to say a steady stream of viewers at the premiere walked out in the early stages of its premiere at the Sundance Film Festival on Friday.

Esquire called it "the longest fart joke in film history", while a review on Wired branded it a “95 minute long viral video”.

The film sparked a wildly mixed response on Twitter, with Kate Arthur, Los Angeles correspondent for Buzzfeed posting: “Inventive--but annoying, puerile, frustrating. Just no. “

Film reporter Jeff Sneider added: “Counted at least 30 walkouts within first 30 mins of the unwatchable SWISS ARMY MAN before I bailed myself at 40-minute mark. DO NOT SEE IT.”

However, screen writer Terrell Garrett was among the more positive viewers, posting: “SWISS ARMY MAN was absurd, demented and genius. Directors are master of tone.”

Daniel Radcliffe: ‘I’m a geek, I’m obsessed with cricket. What a disappointment I must be to fans who meet me’ Show all 13 1 /13 Daniel Radcliffe: ‘I’m a geek, I’m obsessed with cricket. What a disappointment I must be to fans who meet me’ Daniel Radcliffe: ‘I’m a geek, I’m obsessed with cricket. What a disappointment I must be to fans who meet me’ 138960806.jpg Getty Images Daniel Radcliffe: ‘I’m a geek, I’m obsessed with cricket. What a disappointment I must be to fans who meet me’ SU20-potter-AP.jpg AP Daniel Radcliffe: ‘I’m a geek, I’m obsessed with cricket. What a disappointment I must be to fans who meet me’ 26-Ghosts.jpg Alliance Films Daniel Radcliffe: ‘I’m a geek, I’m obsessed with cricket. What a disappointment I must be to fans who meet me’ 645494.bin Daniel Radcliffe and Rose Hemingway, his co-star in the Broadway play, How to Succeed in Business Without Really Trying Getty Images Daniel Radcliffe: ‘I’m a geek, I’m obsessed with cricket. What a disappointment I must be to fans who meet me’ 621457.bin Harry Potter (Daniel Radcliffe) meets his nemesis Lord Voldemort (Ralph Fiennes) in The Deathly Hallows, Part 2 AP Daniel Radcliffe: ‘I’m a geek, I’m obsessed with cricket. What a disappointment I must be to fans who meet me’ 621354.bin Daniel Radcliffe attends the world premiere of Harry Potter and the Deathly Hallows -Part 2 Getty Images Daniel Radcliffe: ‘I’m a geek, I’m obsessed with cricket. What a disappointment I must be to fans who meet me’ 620766.bin AFP PHOTO / BEN STANSALL Daniel Radcliffe: ‘I’m a geek, I’m obsessed with cricket. What a disappointment I must be to fans who meet me’ 493977.bin Britain's Emma Watson (R) poses with Daniel Radcliffe as they arrive for the world premiere of "Harry Potter and the Deathly Hallows: Part 1" at Leicester Square in London November 11, 2010. Reuters Daniel Radcliffe: ‘I’m a geek, I’m obsessed with cricket. What a disappointment I must be to fans who meet me’ 46235.bin Actors Jim Broadbent and Daniel Radcliffe in a scene from "Harry Potter and the Half-Blood Prince" Reuters Daniel Radcliffe: ‘I’m a geek, I’m obsessed with cricket. What a disappointment I must be to fans who meet me’ 108190.bin "It was so infantile in the papers. I was always reading about how Harry Potter was waving his other wand. There is a great deal more going on in the play, you know. I'm not writing porn, for God's sake" - Playwright Sir Peter Shaffer is appalled by the willy jokes during a London revival of 'Equus', starring Daniel Radcliffe Reuters Daniel Radcliffe: ‘I’m a geek, I’m obsessed with cricket. What a disappointment I must be to fans who meet me’ 11357.bin Considerably matured, the trio turned out in the fifth installement, 'Harry Potter and the Order of the Phoenix' earlier this year. The film was another massive box office hit. Daniel Radcliffe also turned heads this year for his part in Peter Shaffer's 'Equus' at the Gielgud Theatre. Daniel Radcliffe: ‘I’m a geek, I’m obsessed with cricket. What a disappointment I must be to fans who meet me’ 488016.bin Daniel Radcliffe as Harry Potter, with his owl Hedwig WARNER BROS Daniel Radcliffe: ‘I’m a geek, I’m obsessed with cricket. What a disappointment I must be to fans who meet me’ 403672.bin Getty Images

Scheinart said Swiss Army Man originated with an idea of "how a man riding a farting corpse could be a feature ... about mortality and big ideas, but with fart jokes".

Radcliffe’s character is the titular “Swiss Army man” because Hank finds many uses for his corpse, including turning his mouth into a cannon and his gas into a fire-starter.