Arduino Mega PWM doesn't work in C Code Why such horrible Arduino's Mega PWM doesn't work??

Below is my code.

I try to set Fast PWM 8-bit to dim and light up a LED connected to OCR1A Pin. I try to do it in C language, completelly without Arduino's lbraries and it doesn't work at all. 

I'm working with documentation and the code seems me to be correct. Almost the same code worked on ATmega8 and ATmega16 (obviously, with special setting for those special ATmegas) but this one doesn't.

The comments in this code point out, that I tried to use few other flags to  check if it work with some of another settings.

#include &lt;avr/io.h&gt;
#include &lt;avr/interrupt.h&gt;
#include &lt;util/delay.h&gt;

//Anode of LED connected to OCR1A (digital pin 11)
#define LED (1&lt;&lt;PB5)

int main()
{
  DDRB |= (1 &lt;&lt; LED);

  //FAST PWM 8-bit, set OCR1A at the Bottom
  TCCR1A = (1 &lt;&lt; COM1A1) | (1 &lt;&lt; WGM10);    // | (1&lt;&lt;WGM11) | (1&lt;&lt;COM1A0)
  //Prescaler :1024
  TCCR1B = (1 &lt;&lt; CS12) | (1 &lt;&lt; WGM12);     //| (1&lt;&lt;WGM13); //Presc :1024  (1&lt;&lt;CS10) |
  //Enable to interrupt Compare Match A
  TIMSK1 = (1 &lt;&lt; OCIE1A);

  uint8_t i;

  sei();

  while (1)
  {
    for (i = 0; i &lt; 255; i++)
    {
      OCR1A = i;
      // _delay_ms(5);
    }

    for (i = 255; i &gt; 0; i--)
    {
      OCR1A = i;
      //_delay_ms(5);
    }    
  }
}


}
Majenko showed you one of your mistakes.

Then you wrote:

//Enable to interrupt Compare Match A
TIMSK1 = (1&lt;&lt;OCIE1A);


And this is your other mistake. You should not enable an interrupt
unless you have defined an ISR for it. Otherwise your program will
restart every time the interrupt fires.